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
There'll be bracing winds and heavy showers this afternoon and expect a wet and windy start on Monday morning.
Carl Edwards and guests look back at the week's events in the latest edition of Newsweek Wales.
A Yellow Warning has been issued by the Met Office as gale force winds and showery rain affect areas across Wales.