Prosecutor Linda Baker told the court that following a complaint to police, other offensive tweets by Robert Riley came to light.
Among them were messages about the missing Malaysian plane, the Korean ferry disaster and champion tennis player Serena Williams.
More top news
An absolute sizzler of a week to come with blue skies and sunshine for all, with temperatures rising!
Tributes have been paid to a 39-year-old Welsh man who was killed in a suspected deliberate hit-and-run in Cyrus.
The Economy Secretary says an integrated ‘Global Centre of Rail Excellence’ would bring highly skilled jobs to the valleys.