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
Cold with frost and fog inland,a little milder but breezy around the coasts!
UKIP's candidate in the Rhondda quits party claiming it's turned its back on the people it claims to represent
It follows an online campaign to give Iestyn Baldwin, from Bridgend "the best birthday ever".