diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-03-03 20:25:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-03 20:25:15 +0100 |
commit | c2a046ded1d47e2504df05568e34bc6a2a6dc810 (patch) | |
tree | 8b36e3310d6fd141a10752752f88242f9138e876 /app/models/form | |
parent | 3a6451c867595fd58998ee1706589b15a69d993b (diff) |
Fix “Remove all followers from the selected domains” being more destructive than it claims (#23805)
Diffstat (limited to 'app/models/form')
-rw-r--r-- | app/models/form/account_batch.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/models/form/account_batch.rb b/app/models/form/account_batch.rb index 473622edf..5a7fc7ed1 100644 --- a/app/models/form/account_batch.rb +++ b/app/models/form/account_batch.rb @@ -17,8 +17,8 @@ class Form::AccountBatch unfollow! when 'remove_from_followers' remove_from_followers! - when 'block_domains' - block_domains! + when 'remove_domains_from_followers' + remove_domains_from_followers! when 'approve' approve! when 'reject' @@ -50,10 +50,8 @@ class Form::AccountBatch RemoveFromFollowersService.new.call(current_account, account_ids) end - def block_domains! - AfterAccountDomainBlockWorker.push_bulk(account_domains) do |domain| - [current_account.id, domain] - end + def remove_domains_from_followers! + RemoveDomainsFromFollowersService.new.call(current_account, account_domains) end def account_domains |