That person is not your friend. Either run away or call out their behavior... Or both.
Who tf shames a girl for saying another girl is pretty ? Even as a straight girl, I think most girls are pretty. Also, if my lesbian friends told me they found a random girl hot, I would probably just react with a "daaamn, you thirsty" or something along those ......
reply