Despite widespread shock at the death of Leeds schoolteacher Ann Maguire, magistrates in Swansea heard Robert Riley saw fit to make fun of the tragedy online two days later.
Despite a backlash from other Twitter users horrified by his messages, the 42-year-old remained incredulous, saying: "Of all the sick things I've tweeted, starvation, genocide, rape and torture, it's the teacher from Leeds that outrages everyone the most."
More top news
A couple from Newport have decorated their house and garden with thousands of lights to raise money for local charities
Take your waterproofs with you if you're heading out tonight! It's about to turn wet with mist and hill fog by the early hours!
Ian Paul Mcguigan and two men from Liverpool were caught after a police surveillance operation.