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