https://www.bbc.com/indonesia/articles/ce7xr9k93gro
The rights and wrongs are unimportant- Not getting banged up is.
I can't be sure what he actually said as the only site that I read was a biased one, but I gather he publicly insulted some people (requires confirmation)
That earned him a fine and time behind bars.
Defamation is a criminal offence here so perhaps a little wisdom with words is a good idea in case you upset the wrong people.