about summary refs log tree commit diff
path: root/app/services/remove_from_followers_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/remove_from_followers_service.rb')
-rw-r--r--app/services/remove_from_followers_service.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/services/remove_from_followers_service.rb b/app/services/remove_from_followers_service.rb
index 3dac5467f..007d5b1fd 100644
--- a/app/services/remove_from_followers_service.rb
+++ b/app/services/remove_from_followers_service.rb
@@ -7,9 +7,7 @@ class RemoveFromFollowersService < BaseService
     source_account.passive_relationships.where(account_id: target_accounts).find_each do |follow|
       follow.destroy
 
-      if source_account.local? && !follow.account.local? && follow.account.activitypub?
-        create_notification(follow)
-      end
+      create_notification(follow) if source_account.local? && !follow.account.local? && follow.account.activitypub?
     end
   end