Give Yourself Permission . . .

to tell your friend, "That was really racist/sexist/anything-ist," and not laugh at the joke.

You're not being "uptight" by calling someone out.