Turkey’s Supreme Court of Appeals on Thursday upheld a prison sentence of 4 years, 11 months and 14 days for Canan Kaftancıoğlu, the head of the İstanbul branch of the country’s main opposition Republican People’s Party (CHP).

The charges related mostly to tweets Kaftancıoğlu posted between 2012 and 2017. She is charged with spreading propaganda for a terrorist organization.

Kaftancıoğlu, a doctor by profession, played a key role in the shock victory of the CHP’s İstanbul mayor Ekrem İmamoğlu in 2019 — the first time Erdoğan’s party had lost power in Turkey’s biggest city for 25 years.