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
Motorbike rider Kara Rann has died after crashing during competition at Pembrey Racing Circuit in Carmarthenshire
David Cameron promises 'to bring fairness to our constitution' but fails to spell out what that will mean for Wales
There will be some patchy rain but many areas will be dry for much of the time.