mirror of https://github.com/mastodon/mastodon
Don’t check for mentions in URLs
URLs can contain things that look like @handles. Users shouldn’t be notified in this case.
This commit is contained in:
parent
925c16adea
commit
4228d37c7f
|
@ -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