Fix “Scoped order is ignored, it's forced to be batch order.” warnings (#26793)
This commit is contained in:
parent
f80f426c57
commit
cab4cbfa5c
15 changed files with 25 additions and 22 deletions
|
@ -51,13 +51,13 @@ class SuspendAccountService < BaseService
|
|||
end
|
||||
|
||||
def unmerge_from_home_timelines!
|
||||
@account.followers_for_local_distribution.find_each do |follower|
|
||||
@account.followers_for_local_distribution.reorder(nil).find_each do |follower|
|
||||
FeedManager.instance.unmerge_from_home(@account, follower)
|
||||
end
|
||||
end
|
||||
|
||||
def unmerge_from_list_timelines!
|
||||
@account.lists_for_local_distribution.find_each do |list|
|
||||
@account.lists_for_local_distribution.reorder(nil).find_each do |list|
|
||||
FeedManager.instance.unmerge_from_list(@account, list)
|
||||
end
|
||||
end
|
||||
|
@ -65,7 +65,7 @@ class SuspendAccountService < BaseService
|
|||
def privatize_media_attachments!
|
||||
attachment_names = MediaAttachment.attachment_definitions.keys
|
||||
|
||||
@account.media_attachments.find_each do |media_attachment|
|
||||
@account.media_attachments.reorder(nil).find_each do |media_attachment|
|
||||
attachment_names.each do |attachment_name|
|
||||
attachment = media_attachment.public_send(attachment_name)
|
||||
styles = MediaAttachment::DEFAULT_STYLES | attachment.styles.keys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue