Browse Source

Fix admin statuses page order with media (#17538)

closed-social-glitch-2
Jeong Arm 2 years ago
committed by GitHub
parent
commit
d39df35441
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/admin/status_filter.rb

+ 1
- 1
app/models/admin/status_filter.rb View File

@ -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

Loading…
Cancel
Save