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
Wales's vote to leave the European Union should not damage Cardiff's reputation as a 'inclusive' city, say council officials.
The two men who ran Wales Stronger in Europe have revealed where they think the campaign went wrong -and call for Jeremy Corbyn to resign.
After a dry start for many, rain will quickly spread across the country turning heavy in places, most likely in the north and west.