Woman faced 22 years in jail for criticising her government