Fix scoped order warning in RemoveStatusService (#16531)

Fixes “Scoped order is ignored, it's forced to be batch order.”
remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
Claire 2021-07-24 14:41:46 +02:00 committed by GitHub
parent e9659ae031
commit 1d67acb72f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ class RemoveStatusService < BaseService
# because once original status is gone, reblogs will disappear
# without us being able to do all the fancy stuff
@status.reblogs.includes(:account).find_each do |reblog|
@status.reblogs.includes(:account).reorder(nil).find_each do |reblog|
RemoveStatusService.new.call(reblog, original_removed: true)
end
end