From 74728ad992defeeab860ef5890e3f629328a036e Mon Sep 17 00:00:00 2001 From: r888888888 Date: Tue, 21 Jul 2015 15:56:55 -0700 Subject: [PATCH] fixes #2445: Paginate mod queue --- app/controllers/moderator/post/queues_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/moderator/post/queues_controller.rb b/app/controllers/moderator/post/queues_controller.rb index 995a29341..4af728feb 100644 --- a/app/controllers/moderator/post/queues_controller.rb +++ b/app/controllers/moderator/post/queues_controller.rb @@ -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)