about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2017-11-28 15:00:22 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-11-28 15:00:22 +0100
commitb8efb5daed9825323f17039b416527850d017ff2 (patch)
tree483be8d4ef8bc88476ea724ca3ba82dc5164f8d8 /app/services
parent2b3b44ebbcd07ac0841d3d9d5d6d551d088edc6b (diff)
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
Diffstat (limited to 'app/services')
-rw-r--r--app/services/process_mentions_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/process_mentions_service.rb b/app/services/process_mentions_service.rb
index a229d4ff8..e12721c46 100644
--- a/app/services/process_mentions_service.rb
+++ b/app/services/process_mentions_service.rb
@@ -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