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
Showers this evening with heavier and more persistent rain arriving overnight. A wet start tomorrow but improving during the afternoon.
A mother from Neath has told how her teenage son collapsed and was left unconscious for five hours after taking a so-called legal high.
Two brothers from Cardiff are campaigning for their cousin's murder to be re-investigated, 76 years after she died.