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
PM announces funding will be made available for a memorial dedicated to the victims of last week’s terrorist attack in Tunisia
Leah Washington, 17, had to have her left leg amputated after being trapped for hours on The Smiler rollercoaster at the theme park.
Helen Plint has the evening forecast