Fix handling of temporary failures in ProcessMentionsService (#5842)
* Add test for temporary account resolving failures in ProcessMentionsService * Fix processing of mentions to already-known remote accounts on temporary failures
This commit is contained in:
parent
2b3b44ebbc
commit
b8efb5daed
2 changed files with 22 additions and 1 deletions
|
@ -18,7 +18,7 @@ class ProcessMentionsService < BaseService
|
|||
end
|
||||
|
||||
if mentioned_account.nil?
|
||||
username, domain = match.first.split('@')
|
||||
username, domain = $1.split('@')
|
||||
mentioned_account = Account.find_remote(username, domain)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue