Ugandan Academic Jailed for Insulting President on Facebook

How is this a crime? Stella Nyanzi, a researcher and activist, was sentenced to 18 months in prison for a post including sexually explicit criticism of President Yoweri Museveni.