mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
FIX: Queued Posts should be ordered by created_at
This commit is contained in:
parent
c9e8dd87e5
commit
e7af8d2239
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ class QueuedPostsController < ApplicationController
|
|||
state = QueuedPost.states[(params[:state] || 'new').to_sym]
|
||||
state ||= QueuedPost.states[:new]
|
||||
|
||||
@queued_posts = QueuedPost.visible.where(state: state).includes(:topic, :user)
|
||||
@queued_posts = QueuedPost.visible.where(state: state).includes(:topic, :user).order(:created_at)
|
||||
render_serialized(@queued_posts,
|
||||
QueuedPostSerializer,
|
||||
root: :queued_posts,
|
||||
|
|
Loading…
Reference in a new issue