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
Any showers will ease through the evening to leave a mainly dry night with clear spells and light winds.
A coroner says that the family of a 15-year-old girl, who died after falling from a bridge, was let down by health authorities.
A chihuahua has been rescued after spending five days trapped down a hole on a Cwmtillery mountain.