Twitter restored a feature that promoted suicide prevention hotlines and other safety resources to users looking up certain content, after coming under pressure from some users and consumer safety groups over its removal.

Reuters reported on Friday that the feature was taken down a few days ago, citing two people familiar with the matter, who said the removal was ordered by the social media platform's owner Elon Musk.

After publication of the story, Twitter head of trust and safety Ella Irwin confirmed the removal and called it temporary. "We have been fixing and revamping our prompts. They were just temporarily removed while we do that," Irwin said in an email to Reuters.