The more I read about this, the more insane it gets. I'm not familiar with the Indonesian president, but if he feels the need to put people in jail just for insulting him, then he seems incredibly thin-skinned. Then there's the state trying to police when and how people have sex. That by itself is insane enough.
What floored me, though, is the mention of outlawing freaking black magic in the penal code (Source). How do you even define black magic? More to the point, why put something that cannot be clearly explained or defined in a legal document? Are we regressing back to medieval times or something? Because clearly, I missed the memo.