To put it another way: Joan Rivers made jokes about the gay community, but she was making them for the gay community. She had a pre-existing relationship with the gay community long before that material really started entering her rotation, and she always understood and respected her place there.