A Moroccan court on Monday sentenced a journalist to a year in prison for sex outside marriage and having an abortion, both of which she denied, in a case that has outraged rights activists, who say the charges are politically motivated.

Police arrested Hajar Raissouni, 28, on Aug. 31 along with her fiance as they were leaving a gynecologist’s clinic in Rabat.

Raissouni works for Akhbar al-Youm, an independent newspaper that has been critical of the state, and is the niece of a Muslim theologian who is a former leader of a politically influential Islamist group.