A Turkish court has ruled to imprison an amateur comedian on charges of insulting Mustafa Kemal Atatürk, the founder of modern Turkey, and the famous mystic Rumi in his shows, according to Turkish media reports.

A video posted on social media last week showed comedian Emre Günsal making jokes about the drinking habits of Atatürk as well as the relationship between Rumi and his spiritual instructor Shams, implying that they were actually lovers.

A detention warrant for Günsal was issued by the Konya Chief Public Prosecutor’s Office several days ago. The comedian was arrested in İstanbul and subsequently jailed on Friday.

An article in the Turkish Penal Code (TCK) protects Atatürk’s memory, stipulating one to three years in prison for explicit insults of him.