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
Icy patches will be a hazard on some untreated roads, pavements & paths. Some injuries are possible from slips and falls on icy surfaces
A look at this weekend's forecast
SMiShing or SMS phishing is a new type of scam where fraudsters try to send a text message to a mobile phone.