As an aside, I think it's best that whenever someone is promoted to manager, they then manage a
different team, so that their previous peers are not suddenly their direct reports. It's better for everyone that way. The new manager doesn't have to struggle through authority issues with their previous teammates/friends, and the team isn't disadvantaged by having a new manager in whom they confided info they maybe wouldn't have otherwise shared.
Also, on the main topic of the article: personally I seriously limit all my jokes around my team... and also around anyone I could reasonably suspect of moving to my team in the next two years (you gotta always think ahead). IRL most people would describe me as very funny and always joking, and my humor often tends dark. At work, I think a lot of people would describe me as humorless, or amusing at best. This is on purpose. I don't subscribe to the "bring you whole self" theory of modern workplace. I think it's important for the people who entrust their careers in me to see me as serious, thoughtful, and decisive -- not as a goofball whose proudest moments include 40K-upvote memes on reddit!