An appeals court in Mauritania has reduced a death sentence given to a blogger to a two-year jail term.
Cheikh Ould Mohamed Ould Mkheitir was convicted of blasphemy in 2014.
He will be released immediately as he has already been in jail for more than two years.
The BBC reports that the blogger's article was considered insulting to the Prophet Muhammad.
He argued it was meant to criticise the use of religion to justify discrimination.