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
In this today's Newsweek Wales, Carl talks about cancer survival rates in Wales and the search for volunteers to train guide dog puppies.
It'll be brighter today with some lingering blustery showers. This evening it'll be colder under clear skies, with isolated showers.
Gareth Bale put any domestic troubles behind him as he starred in Wales' emphatic 3-0 win over Israel in Haifa.