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
A wealthy couple claimed more than £43,000 in benefits while having a small fortune in the bank, Cardiff Crown Court has heard.
Michelle Smith was found guilty in 2012 of murdering her six-week old daughter Amy, by dosing her with adult painkillers.
Welsh family beaten unconscious by gang in Thai tourist resort. The grandparents and their son were punched and kicked unconscious.