I think this is an example of using slow trials as a nonjudicial weapon. The defendant did not break the law and isn't likely to be convicted (at least not on appeal), but they can hold him in jail for months because they got mad at his Facebook post.
That should be where the right to a speedy trial comes into play. If he is held in jail because he isn't released on bail, the best thing to do is repeatedly file motions for the speedy trial.
Ie you can spend over 3 months in jail before an hearing and still be considered to have had a speedy trial. He’d have to wait til after that period to even file a motion for dismissal on speedy trial grounds, and then wait for the hearing on that to happen.
This is part of why plea deals are so common. Even if he were somehow to be convicted, his sentence would probably be less than the speedy trial window. At a certain point, the prosecution will offer to bump it down to some kind of misdemeanor with jail time less than he’s already done so it’s time served. He may as well plead guilty to that because otherwise he’ll keep sitting in jail waiting on a trial and do more time for no reason.
There’s no realistic route where he gets compensated for being wrongly prosecuted, even if he goes to trial and is found not guilty.
The justice system is deeply, deeply flawed and unjust.