This situation is horrific and should have never happened, but to be clear the prosecution was for violating sunshine laws. So the conviction was not for speech, but rather for failing to conduct that speech in public.
Edit: it was actually for perjury during the sunshine investigation.