mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Adds support for invisible approval queues, which we'll need for Akismet
This commit is contained in:
@@ -8,7 +8,7 @@ class QueuedPostsController < ApplicationController
|
||||
state = QueuedPost.states[(params[:state] || 'new').to_sym]
|
||||
state ||= QueuedPost.states[:new]
|
||||
|
||||
@queued_posts = QueuedPost.where(state: state).includes(:topic, :user)
|
||||
@queued_posts = QueuedPost.visible.where(state: state).includes(:topic, :user)
|
||||
render_serialized(@queued_posts, QueuedPostSerializer, root: :queued_posts, rest_serializer: true)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user