The post in question said “The government is shit, the institution is shit,” which a complainant interpreted as intended to refer to the royal institution without mentioning it explicitly.
Congratulations Thailand Supreme Court. By sentencing her to prison you just proved she was right.