mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 11:35:29 +01:00
Fix admin statuses page order with media (#17538)
This commit is contained in:
parent
9a015e43ef
commit
d39df35441
@ -31,7 +31,7 @@ class Admin::StatusFilter
|
|||||||
def scope_for(key, value)
|
def scope_for(key, value)
|
||||||
case key.to_s
|
case key.to_s
|
||||||
when 'media'
|
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'
|
when 'id'
|
||||||
Status.where(id: value)
|
Status.where(id: value)
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user