A Turkish ban on Twitter was recently lifted when a court deemed it violated rights.
A Turkish court on Thursday handed a 15-month jail term to a teacher over Twitter posts deemed religiously offensive, local media reported on Thursday.
The court in the eastern city of Mus ruled that the man, identified as Ertan P., insulted Islamic values with his Twitter handle ("Allah (c.c.)", or @CenabiAllah) and a series of tweets he posted, Hurriyet newspaper reported on its website.
The defendant claimed his account had been hacked and appealed against the sentence, Hurriyet said.
Pretending to tweet as God, he wrote: "In my present state of mind, I would not have created the little finger of human beings".
"Here (heaven) is very safe because there is no police," he tweeted in reference to police crackdown on protesters during mass anti-government demonstrations in June last year.
The Islamic-rooted government banned Twitter in March after the micro-blogging site was used to spread corruption allegations against Prime Minister Recep Tayyip Erdogan and his inner circle.
The ban, which earned Turkey a strong rebuke from rights groups and its Western allies, was lifted two weeks later after the country's top court ruled that it violated rights.
Citing the same reason, the Constitutional Court on Thursday lifted a similar ban on YouTube, also imposed in March after the website was used to spread damaging leaked audio files from a state security meeting debating possible military action in Syria.