This commit is contained in:
Tibor Martini 2024-05-10 20:06:51 +00:00 committed by GitHub
commit 2d66bf43b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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('@')