A Hatay man who was detained and later released pending trial on charges of harassing his ex-girlfriend, has reportedly been re-arrested after police detected statements insulting President Recep Tayyip Erdoğan in his unwanted messages and phone calls to his victim.

According to BBC Turkish, the man, Erdoğan Küpeli, was taken into custody by police a day after his alleged ex-girlfriend, 29-year-old Gülay Mübarek, filed a complaint against Kupeli.

The man was transported to police headquarters, where he was reportedly released pending trial the following day. However, Küpeli was re-detained the same day and this time was sent to prison because police officers detected messages and e-mails in his phone that allegedly insulted President Erdogan.

A total of 1,080 people were convicted of insulting Erdoğan in 2016, according to data from Turkey’s Justice Ministry. Data also showed that 4,936 cases were launched against people on charges of insult in 2016.

The report indicated that 4,750 people over the age of 18, 36 foreign nationals and two legal entities were accused of insult, leading to the conviction of 1,080 people on insult charges, of whom 867 received suspended sentences. A total of 679 people were acquitted.

According to the report, 102 children between the ages of 12-15 and 138 minors between the ages 15-18 were accused of committing crimes against the sovereignty of the state and the prestige of its bodies.