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
Showers in the north will spread southeastwards overnight. Temperatures will be higher so not as chilly as list night.
Chilly start to Tuesday, turning into a largely fine and dry day.
Political Editor Adrian Masters was joined in the studio by assembly members Bethan Jenkins, Mick Antoniw and Suzy Davies.