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

This commit is contained in:
Jeong Arm 2021-11-04 23:49:35 +09:00 committed by Eugen Rochko
parent f366a23a23
commit e1cf8d4d37
1 changed files with 1 additions and 1 deletions

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)