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
A mild night with heavy showers spreading to most parts by the early hours!
Tata UK's chief executive told ITV News they have great faith in the Port Talbot workers helping to make the company a success.
First Minister Carwyn Jones told ITV News the deal between Tata and the unions