Remove useless `reorder(nil)` call in `tootctl statuses` (#28141)
parent
e0dacf6b4c
commit
1d7b8234c9
|
@ -120,7 +120,7 @@ module Mastodon::CLI
|
||||||
|
|
||||||
say('Beginning removal of now-orphaned media attachments to free up disk space...')
|
say('Beginning removal of now-orphaned media attachments to free up disk space...')
|
||||||
|
|
||||||
scope = MediaAttachment.reorder(nil).unattached.where('created_at < ?', options[:days].pred.days.ago)
|
scope = MediaAttachment.unattached.where('created_at < ?', options[:days].pred.days.ago)
|
||||||
processed = 0
|
processed = 0
|
||||||
removed = 0
|
removed = 0
|
||||||
progress = create_progress_bar(scope.count)
|
progress = create_progress_bar(scope.count)
|
||||||
|
|
Loading…
Reference in New Issue