about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-07-13 19:33:10 +0200
committerGitHub <noreply@github.com>2020-07-13 19:33:10 +0200
commit98b3b80d6bc6b8549448bb7fadc1449ba68a52ea (patch)
tree5d416f03545a5e4f092743f33cb7e8d2ac48a73d /app/services
parentee5a4030f76c0ec4799d2249aad952665a7bda80 (diff)
Fix account domain block not properly unfollowing accounts from domain (#14304)
Fix #14303
Diffstat (limited to 'app/services')
-rw-r--r--app/services/after_block_domain_from_account_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/after_block_domain_from_account_service.rb b/app/services/after_block_domain_from_account_service.rb
index f50bde261..89d007c1c 100644
--- a/app/services/after_block_domain_from_account_service.rb
+++ b/app/services/after_block_domain_from_account_service.rb
@@ -19,7 +19,7 @@ class AfterBlockDomainFromAccountService < BaseService
   private
 
   def remove_follows!
-    @account.active_relationships.where(account: Account.where(domain: @domain)).includes(:target_account).reorder(nil).find_each do |follow|
+    @account.active_relationships.where(target_account: Account.where(domain: @domain)).includes(:target_account).reorder(nil).find_each do |follow|
       UnfollowService.new.call(@account, follow.target_account)
     end
   end