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
Council have until today to say if the plan to merge. Minister Leighton Andrews says joining together will create "significant savings"
Mainly cloudy, with a little patchy, light rain in the southeast this afternoon. Some brighter spells in the west at times.
A largely dry, cloudy and mild night with fog patches mainly confined to higher ground. Blustery along the coast.