about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorJeong Arm <kjwonmail@gmail.com>2022-02-15 00:07:04 +0900
committerGitHub <noreply@github.com>2022-02-14 16:07:04 +0100
commitd39df35441d7e4b39a57402e554ed92b1ec2e1f1 (patch)
treea0105e51ea3d07b91abe8b436e25360ee20f01b0 /app
parent9a015e43ef173a3afc93cc1d06fd7f76adb8876a (diff)
Fix admin statuses page order with media (#17538)
Diffstat (limited to 'app')
-rw-r--r--app/models/admin/status_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/admin/status_filter.rb b/app/models/admin/status_filter.rb
index ce5bb5f46..4fba612a6 100644
--- a/app/models/admin/status_filter.rb
+++ b/app/models/admin/status_filter.rb
@@ -31,7 +31,7 @@ class Admin::StatusFilter
   def scope_for(key, value)
     case key.to_s
     when 'media'
-      Status.joins(:media_attachments).merge(@account.media_attachments.reorder(nil)).group(:id)
+      Status.joins(:media_attachments).merge(@account.media_attachments.reorder(nil)).group(:id).reorder('statuses.id desc')
     when 'id'
       Status.where(id: value)
     else