Remove default_scope
from MediaAttachment
class (#28043)
This commit is contained in:
parent
02a98210e8
commit
bb0efe16e6
11 changed files with 15 additions and 16 deletions
|
@ -165,7 +165,7 @@ class DeleteAccountService < BaseService
|
|||
end
|
||||
|
||||
def purge_media_attachments!
|
||||
@account.media_attachments.reorder(nil).find_each do |media_attachment|
|
||||
@account.media_attachments.find_each do |media_attachment|
|
||||
next if keep_account_record? && reported_status_ids.include?(media_attachment.status_id)
|
||||
|
||||
media_attachment.destroy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue