ANKARA, Turkey (AP) - A Turkish court convicted an opposition party branch leader Friday of engaging in terrorist propaganda and insulting Turkish government officials with a series of social media posts, a verdict the opposition immediately alleged was politically motivated.

Canan Kaftancioglu, who heads the Istanbul branch of the secular Republican People’s Party, received a prison sentence of nine years and eight months for insulting President Recep Tayyip Erdogan and other accusations, the state-run Anadolu Agency reported.

Kaftancioglu denied wrongdoing. She plans to appeal and won’t be imprisoned until the outcome of that process.

The politician is a key opposition figure who helped deliver a stunning victory for colleague Ekrem Imamoglu in Istanbul’s mayoral election, dealing a major blow to Erdogan.

Republican People’s Party leader Kemal Kilicdaroglu described Kaftancioglu as a victim of political “vengeance” and vowed to fight for justice.

Anadolu Agency said she was found guilty of the charges of insulting the Turkish republic, state officials and Erdogan as well as making terrorist propaganda and inciting public enmity.

Prosecutors sought up to 17 years in prison for her social media posts. They included a 2013 tweet referring to the co-founder of an outlawed Kurdish militant group who was killed in Paris.

Opposition broadcaster Halk TV said the court refused to suspend the sentence on the grounds that she had not shown any remorse during the course of the trial.

Large crowds gathered outside the courthouse in Istanbul and protested the verdict, shouting demands for “rights, laws, justice.”

The former leader of Turkey’s pro-Kurdish party, Selahattin Demirtas, and other party officials are in jail on terror-related charges.

Sign up for Daily Newsletters Manage Newsletters

Copyright © 2020 The Washington Times, LLC.