about summary refs log tree commit diff
path: root/app/services/follow_service.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-02-11 14:12:29 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-02-11 14:25:01 +0100
commit00b5731ecb2c29dd5c79a233f046a9655031ec71 (patch)
tree318e297bc3393da5a303ac5665d2f6ebae80f5b0 /app/services/follow_service.rb
parente610555e10356374d1f4e0e7ca11056580ec9f3b (diff)
After FollowService, re-fetch remote account asynchronously, do nothing
if account lock info was up to date, otherwise re-do the FollowService
with now updated information
Diffstat (limited to 'app/services/follow_service.rb')
-rw-r--r--app/services/follow_service.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/follow_service.rb b/app/services/follow_service.rb
index 6ca834c19..ac0392d16 100644
--- a/app/services/follow_service.rb
+++ b/app/services/follow_service.rb
@@ -28,6 +28,7 @@ class FollowService < BaseService
       NotifyService.new.call(target_account, follow_request)
     else
       NotificationWorker.perform_async(stream_entry_to_xml(follow_request.stream_entry), source_account.id, target_account.id)
+      AfterRemoteFollowRequestWorker.perform_async(follow_request.id)
     end
 
     follow_request
@@ -41,6 +42,7 @@ class FollowService < BaseService
     else
       subscribe_service.call(target_account) unless target_account.subscribed?
       NotificationWorker.perform_async(stream_entry_to_xml(follow.stream_entry), source_account.id, target_account.id)
+      AfterRemoteFollowWorker.perform_async(follow.id)
     end
 
     MergeWorker.perform_async(target_account.id, source_account.id)