Browse Source

Don't PuSH-resubscribe if already subscribed

master
Eugen Rochko 7 years ago
parent
commit
514fdfa268
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/services/follow_service.rb

+ 1
- 1
app/services/follow_service.rb View File

@ -39,7 +39,7 @@ class FollowService < BaseService
if target_account.local? if target_account.local?
NotifyService.new.call(target_account, follow) NotifyService.new.call(target_account, follow)
else 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) NotificationWorker.perform_async(stream_entry_to_xml(follow.stream_entry), source_account.id, target_account.id)
end end

Loading…
Cancel
Save