When pulling a prank on someone or telling a joke that could come across as offensive, usually we say "take a joke" or something along those lines. What is the expression for this in German?
insertJoke. Das ist nicht ernst gemeint, inserName!
As 0x6d64 points out, the following two expressions are rather used when you say something you are serious about, but personally I think it is not wrong to use them in this case, too.
Nichts für ungut insertName, aber ... insertJoke.
Nimm es mir nicht übel insertName, aber ... insertJoke.