If a friend of mine calls someone else a "fag" jokingly, I will tell them that's not acceptable and to cut it the fuck out, as I don't like implying that being gay is a negative. If a gay person does it, it's on them.
Insulting a group from the inside is very different from insulting it from the outside.