A Chinese author has been jailed for 10 years for writing and selling a novel that featured gay sex scenes.

Chinese state media identified the writer by her surname, Liu, but she is better known by her pen name Tianyi. In 2017, Tianyi published a book called Occupy, and sold it via the Chinese online shopping site Taobao.

According to state news outlet Global Times, Tianyi has gained illegal profits by selling a variety of books relating to homosexuality. According to reports she’s made 150,000 yuan selling erotic novels.

“According to Wuhu police, the book describes obscene sexual behaviour between males, and the content, which is full of perverted sexual acts like violation and abuse, was sold online several thousand times over a period of a few months,” reported the Global Times.

A court in China’s Anhui province sentenced Tianyi to 10 years and six months in jail for the crime of making and selling obscene articles for profit.

Four other people involved in the publication of the book also received jail sentences ranging between 10 months and 10 and a half years, as well as fines.

This all forms a part of China’s larger crackdown on pornographic content and the government’s control over what is being said and shared online. Regulators have even increased the reward money given to citizens who report pornographic content to police.

While some users on China’s social media site Weibo agreed with the sentencing, some stood up for the author, with many comparing the lengthy sentence to much shorter sentences often given to women abusers.