mirror of https://github.com/mastodon/mastodon
Merge b87ee76726
into 1959365c2f
This commit is contained in:
commit
2d66bf43b6
|
@ -25,6 +25,7 @@ class ProcessMentionsService < BaseService
|
|||
private
|
||||
|
||||
def scan_text!
|
||||
@status.text = @status.text.gsub(/http[^\s]+/, '')
|
||||
@status.text = @status.text.gsub(Account::MENTION_RE) do |match|
|
||||
username, domain = Regexp.last_match(1).split('@')
|
||||
|
||||
|
|
Loading…
Reference in New Issue