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
Former Cardiff Blues captain Andries Pretorius has been forced to retire from the sport after being diagnosed with a muscle disorder.
As the Met Office issues a cold weather warning, spare a thought for the chimps struggling to keep warm at this Ape and Monkey Sanctuary.
Care workers in the Rhondda who were made redundant say they could lose their homes as redundancy money has still not been paid.