So this person is your friend, and you called them out, very undiplomatically, in a public forum? And then got distracted by an argument with a third party?
You weren’t motivated by a desire to help your friend be a better person; you just wanted to be right, and you embarrassed your friend in the process. You’re the asshole.