During Robert Riley's sentencing, chairwoman of the bench Georgina Scannell voiced her disgust at his "vile" and "offensive" online messages.
The offensive messages outraged the public. You had complete disregard for the tragic death of Ann Maguire.
Besides this, countless other vile messages were made by you.
The bench finds these were racially and religiously aggravated.
The offences are so serious that only a period of immediate custody can be justified.
More top news
Chris Baker found an incredible talent for art. It's so impressive he now has his own exhibition in the Wales Millennium Centre.
Calm and quiet for much of Wales overnight, but there is more wet weather on the way for tomorrow!
We've been looking at individuals and what they're passionate about. Now we shine the spotlight on 11-year-old Joe Elliott....