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
The forty year old has returned to her presenting role this week, after giving birth to her first child in January.
More than 14,500 emergency food supplies were handed out to local people by a foodbank in Cardiff last year.
Theresa May said "collaboration" between smaller parties could put Jeremy Corbyn into power. The Prime Minister will visit Wales today.