A man has admitted posting offensive messages on Twitter in the wake of the murder of Leeds teacher Ann Maguire.
Forty-two-year-old Robert Riley from Port Talbot was granted bail by magistrates in Leeds.
His solicitor said he was mortified by what he had done and apologised.
He will next appear at Swansea magistrates court on Thursday.
More top news
Cloud and rain expected
What you can do if you are booked to go on holiday with the Lowcost Travelgroup?
The opening of a new £14m pound waterpark in Scarborough is to be delayed by two days after it was hit by technical problems .