You shouldn't make offensive jokes.
Jeff is around a group of friends where he is telling stories and trying to become more popular.
Jeff wants to become more popular with some of his friends.
Jeff tells his friends funny stories about his recent vacation and his friends really enjoy Jeff's personality and his travels.
Jeff tells a joke about a different minority that some of his friends find it amusing.
His friends think Jeff is a person they enjoy spending time with and continue to see him during their free time.
Some of his friends repeat the joke to other people, giving Jeff credit, which leads to other people stating that Jeff is a racist.