about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-02-11 13:48:28 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-02-11 13:48:28 +0100
commit514fdfa268989fad3a6dcf1a0bc5077ec23be6df (patch)
treec94a089091bf04104c34af54ce97745a3ff91c1a /app
parent149887a0ffc81b588520ff82ab9fda8dff7bce6c (diff)
Don't PuSH-resubscribe if already subscribed
Diffstat (limited to 'app')
-rw-r--r--app/services/follow_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/follow_service.rb b/app/services/follow_service.rb
index 45b7895b6..6ca834c19 100644
--- a/app/services/follow_service.rb
+++ b/app/services/follow_service.rb
@@ -39,7 +39,7 @@ class FollowService < BaseService
     if target_account.local?
       NotifyService.new.call(target_account, follow)
     else
-      subscribe_service.call(target_account)
+      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)
     end