improve mod queue
This commit is contained in:
@@ -6,7 +6,8 @@ module Moderator
|
||||
|
||||
def show
|
||||
::Post.without_timeout do
|
||||
@posts = ::Post.order("id asc").pending_or_flagged.available_for_moderation(params[:hidden]).search(:tag_match => "#{params[:query]} status:any").paginate(params[:page])
|
||||
@posts = ::Post.order("posts.id asc").pending_or_flagged.available_for_moderation(params[:hidden]).search(:tag_match => "#{params[:query]} status:any").paginate(params[:page], :limit => 100)
|
||||
@posts.all # cache the data
|
||||
end
|
||||
respond_with(@posts)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user