fixes #2445: Paginate mod queue
This commit is contained in:
@@ -6,7 +6,7 @@ module Moderator
|
|||||||
|
|
||||||
def show
|
def show
|
||||||
::Post.without_timeout do
|
::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
|
@posts.each # hack to force rails to eager load
|
||||||
end
|
end
|
||||||
respond_with(@posts)
|
respond_with(@posts)
|
||||||
|
|||||||
Reference in New Issue
Block a user