<human>: Can you give me a shortened version of the text?

throwaway because my bf is an active redditor.

we've been dating for two years and i'm kind of at the end of my rope. my boyfriend is genuinely one of the nicest people i know. he's so romantic, so sweet, and in every other situation in our relationship we work perfectly. but his friends are ruining our relationship. 

he's been friends with this same group of guys since high school, and they're all...really misogynistic, for lack of a better word. their opinions of women are pretty awful. my boyfriend is the first guy in the group to get a girlfriend (go figure!) and he's never been shitty or misogynistic towards me...except for when he's around his friends. he'll slap my ass in front of them even though he knows it makes me uncomfortable, he calls me demeaning names, that sort of thing. it's really degrading. his friends find it really amusing. 

i've told him in private that i don't really like him doing this, it's so out of character for him, etc. and he promised me that he's only joking. how do i convince him to stop?
<bot>: boyfriend insults me, but only in front of his misogynistic friends. how do i get him to stop making fun of me?