Skip to content
Snippets Groups Projects
Commit 514fdfa2 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Don't PuSH-resubscribe if already subscribed

parent 149887a0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment