0
0
Fork 0

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:
ThibG 2017-11-28 15:00:22 +01:00 committed by Eugen Rochko
parent 2b3b44ebbc
commit b8efb5daed
2 changed files with 22 additions and 1 deletions

View file

@ -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