Fix Rails/FindEach
cop (#26886)
This commit is contained in:
parent
fe26f33e0a
commit
0c4e7c06dc
8 changed files with 9 additions and 9 deletions
|
@ -23,7 +23,7 @@ class ActivityPub::SynchronizeFollowersService < BaseService
|
|||
private
|
||||
|
||||
def remove_unexpected_local_followers!
|
||||
@account.followers.local.where.not(id: @expected_followers.map(&:id)).each do |unexpected_follower|
|
||||
@account.followers.local.where.not(id: @expected_followers.map(&:id)).reorder(nil).find_each do |unexpected_follower|
|
||||
UnfollowService.new.call(unexpected_follower, @account)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue