A 42-year-old man from Port Talbot has admitted posting abusive Twitter messages about the death of school teacher Ann Maguire.
Robert Riley appeared before magistrates in Leeds today where he admitted sending a message of a grossly offensive, abusive or malicious character.
Mr Riley has been granted bail and is due to be sentenced at Swansea Magistrates' Court on Thursday.
He was the second person to be charged with the offence in the wake of the death of Mrs Maguire, who was stabbed to death in her classroom at Corpus Christi Catholic College in Leeds, a week ago.
More top news
Amina Al-Jeffery, 21, is originally from Swansea and says her father, Mohammed Al-Jeffery, locks her up because she "kissed a guy".
Gavin Thorman, 37, from Caernarfon was jailed for 12 years last year for his part in conspiring to supply Class A and B controlled drugs.
Jeremy Corbyn has hailed the High Court's decision to block a 'waste of time' legal challenge to his place on the Labour leadership ballot.