So, there are some interesting points from the court document. Bernie Keith's lawyers did ask Alex to stop communicating with him.
Count 4, section 29 I am struggling to comprehend. It only states that Alex's postings resulted in his followers giving him abuse. It does not explicitly say whether or not Alex encouraged his followers to give the abuse. Should he be held responsible for other people's actions, if he hasn't asked them to make the actions? It then goes on to mention Alex making a false claim that Bernie Keith had sex in public on gay beaches. I have a feeling this might be hinting at a homophobic element, which I could understand making an increase in the sentence but it does not formally acknowledge homophobia or hate speech/hate crimes. So effectively, it doesn't seem to be an official charge of homophobia, only hinted, which is not good enough in my opinion, if being used to justify his sentencing.
Section 30 says that remorse was expressed and he was of previous good character.
Given those factors, I don't see how a 2 year and 6 month sentence can be justified for that charge.