improve mod queue

This commit is contained in:
albert
2013-02-22 21:33:11 -05:00
parent 658b3bea12
commit 38f75961f6

View File

@@ -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