fixes #2445: Paginate mod queue

This commit is contained in:
r888888888
2015-07-21 15:56:55 -07:00
parent a39e390e24
commit 74728ad992

View File

@@ -6,7 +6,7 @@ module Moderator
def show
::Post.without_timeout do
@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 = ::Post.order("posts.id asc").pending_or_flagged.available_for_moderation(params[:hidden]).search(:tag_match => "#{params[:query]} status:any").paginate(params[:page], :limit => 25)
@posts.each # hack to force rails to eager load
end
respond_with(@posts)