Update process_mentions_service.rb

This commit is contained in:
Tibor Martini 2023-08-28 15:21:07 +02:00 committed by GitHub
parent 4228d37c7f
commit b87ee76726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class ProcessMentionsService < BaseService
private
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|
username, domain = Regexp.last_match(1).split('@')