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
Hannah is in Carmarthenshire finding out what is happening at the National Botanic Garden of Wales 15 years after it first opened its doors.
A prize-winning pooch from Bala caused a stir at this year's Crufts competition after going to the toilet in the arena.
A cloudy night through many central and western parts, clearer skies at times in the east. A mild night with brisk southwesterly winds.