The Chinese police are not exactly a barrel of laughs.

Especially when the joke is on them.

Law enforcement officials in the eastern province of Anhui arrested an animal breeder this week after he wisecracked on social media that he had given two sleepy, thieving dogs the names “City Officer” and “Traffic Warden.”

The police hauled the man off to jail on Monday, accusing him of sharing “insulting information on law enforcement officers” on the popular platform WeChat. The man, identified only as Mr. Ban, will be detained for 10 days, said the police in the Yingzhou district of the city of Fuyang.

Local news outlets published screenshots of Mr. Ban’s posts, which featured anecdotes about the daily shenanigans of the cane corsos he bred for sale.

“Named ‘City Officer’ and doggone goes to sleep after eating,” one post read.

“Caught in the act! City Officer went to steal shoes,” he wrote in another, as he introduced a video. “Once the Traffic Warden came over, they started fighting.”