diff options
author | Jeong Arm <kjwonmail@gmail.com> | 2021-11-04 23:49:35 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-04 15:49:35 +0100 |
commit | 458830ee7c09aedecb5bccb32d66f364b450ca0d (patch) | |
tree | 0443846831205417476b1ea30949097709a985d2 | |
parent | afb2b19ff542885fa3a0ffa583c4ed604bf7b77d (diff) |
Fix statuses order in account's statuses admin page (#16937)
-rw-r--r-- | app/controllers/admin/statuses_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/statuses_controller.rb b/app/controllers/admin/statuses_controller.rb index ef279509d..58a0eb84c 100644 --- a/app/controllers/admin/statuses_controller.rb +++ b/app/controllers/admin/statuses_controller.rb @@ -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) |