Skip to content

Commit

Permalink
Fix account domain block not properly unfollowing accounts from domain (
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored and Mage committed Jan 14, 2022
1 parent f2c6ddf commit 2d40190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/after_block_domain_from_account_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def call(account, domain)
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
Expand Down

0 comments on commit 2d40190

Please sign in to comment.