Browse Source

Fix statuses order in account's statuses admin page (#16937)

closed-social-v3
Jeong Arm 9 months ago
committed by Eugen Rochko
parent
commit
e1cf8d4d37
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/admin/statuses_controller.rb

+ 1
- 1
app/controllers/admin/statuses_controller.rb View File

@ -14,7 +14,7 @@ module Admin
@statuses = @account.statuses.where(visibility: [:public, :unlisted])
if params[:media]
@statuses.merge!(Status.joins(:media_attachments).merge(@account.media_attachments.reorder(nil)).group(:id))
@statuses.merge!(Status.joins(:media_attachments).merge(@account.media_attachments.reorder(nil)).group(:id)).reorder('statuses.id desc')
end
@statuses = @statuses.preload(:media_attachments, :mentions).page(params[:page]).per(PER_PAGE)

Loading…
Cancel
Save