diff options
author | pluralcafe-docker <docker@plural.cafe> | 2018-08-22 08:26:56 +0000 |
---|---|---|
committer | pluralcafe-docker <docker@plural.cafe> | 2018-08-22 08:26:56 +0000 |
commit | a4935a8e24dcfa865fb330693d8ec90beca1aa98 (patch) | |
tree | 9fc0be073bc2ed5bf4231d850106f214fdeb020e /app/services/after_block_domain_from_account_service.rb | |
parent | c339d49d82b3fd2873831029d9c92b3fbf1236e3 (diff) | |
parent | 37965ac8d9773ae79f6b8dd6fcd353894d2194ca (diff) |
Merge branch 'glitch'
Diffstat (limited to 'app/services/after_block_domain_from_account_service.rb')
-rw-r--r-- | app/services/after_block_domain_from_account_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/after_block_domain_from_account_service.rb b/app/services/after_block_domain_from_account_service.rb index 0f1a8505d..56cc819fb 100644 --- a/app/services/after_block_domain_from_account_service.rb +++ b/app/services/after_block_domain_from_account_service.rb @@ -15,13 +15,13 @@ class AfterBlockDomainFromAccountService < BaseService private def reject_existing_followers! - @account.passive_relationships.where(account: Account.where(domain: @domain)).includes(:account).find_each do |follow| + @account.passive_relationships.where(account: Account.where(domain: @domain)).includes(:account).reorder(nil).find_each do |follow| reject_follow!(follow) end end def reject_pending_follow_requests! - FollowRequest.where(target_account: @account).where(account: Account.where(domain: @domain)).includes(:account).find_each do |follow_request| + FollowRequest.where(target_account: @account).where(account: Account.where(domain: @domain)).includes(:account).reorder(nil).find_each do |follow_request| reject_follow!(follow_request) end end |