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
Dan Biggar says the Wales team are enjoying their World Cup journey and will continue to do so after the pool stages.
A cold night ahead with clear spells and mist patches forming by the early hours!
The story of how Wales have taken their qualifying campaign by storm, to put themselves within touching distance of Euro 2016.