diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-10-25 20:28:51 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-10-25 20:28:51 +0200 |
commit | e855df149bd2f19729af48cd5f452fa3972273f8 (patch) | |
tree | 4d9dab4fd4568f67b07642db61a2f382e8b1dcc0 /app/models/form | |
parent | c647fa99cab9b9db81d36223cf2c2c27e065b648 (diff) | |
parent | 5ba46952af87e42a64962a34f7ec43bc710bdcaf (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Conflicts: - `.env.production.sample`: Upstream added new configuration options, uncommented by default. Commented them. - `Gemfile.lock`: Upstream updated dependencies textually close to glitch-soc-specific dependencies. Updated those upstream dependencies.
Diffstat (limited to 'app/models/form')
-rw-r--r-- | app/models/form/account_batch.rb | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/app/models/form/account_batch.rb b/app/models/form/account_batch.rb index 698933c9f..f1e1c8a65 100644 --- a/app/models/form/account_batch.rb +++ b/app/models/form/account_batch.rb @@ -43,9 +43,7 @@ class Form::AccountBatch end def remove_from_followers! - current_account.passive_relationships.where(account_id: account_ids).find_each do |follow| - reject_follow!(follow) - end + RemoveFromFollowersService.new.call(current_account, account_ids) end def block_domains! @@ -62,14 +60,6 @@ class Form::AccountBatch Account.where(id: account_ids) end - def reject_follow!(follow) - follow.destroy - - return unless follow.account.activitypub? - - ActivityPub::DeliveryWorker.perform_async(Oj.dump(serialize_payload(follow, ActivityPub::RejectFollowSerializer)), current_account.id, follow.account.inbox_url) - end - def approve! users = accounts.includes(:user).map(&:user) |