From 6793018df460a3b679f6ee3425c3d6c932fe7919 Mon Sep 17 00:00:00 2001 From: Francisco Marcelo de Araújo Lima Júnior Date: Mon, 12 May 2014 14:58:15 -0300 Subject: [PATCH] #community dashboard - updating theme --- controllers/public/community_hub_plugin_public_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/public/community_hub_plugin_public_controller.rb b/controllers/public/community_hub_plugin_public_controller.rb index 90a1784..a57361a 100644 --- a/controllers/public/community_hub_plugin_public_controller.rb +++ b/controllers/public/community_hub_plugin_public_controller.rb @@ -79,7 +79,7 @@ class CommunityHubPluginPublicController < PublicController def newer_comments latest_post = params[:latest_post] hub = Article.find(params[:hub]) - posts = Comment.find(:all, :order => "id desc", :conditions => ["id > :id and source_id = :hub", { :id => latest_post, :hub => hub }], :limit => 20) + posts = Comment.find(:all, :order => "id desc", :conditions => ["id > :id and source_id = :hub", { :id => latest_post, :hub => hub }], :limit => 30) if !posts.empty? oldest_post = posts.last.id @@ -97,7 +97,7 @@ class CommunityHubPluginPublicController < PublicController def older_comments oldest_id = params[:oldest_id] hub = Article.find(params[:hub]) - posts = Comment.find(:all, :order => "id desc", :conditions => ["id < :id and source_id = :hub", { :id => oldest_id, :hub => hub }], :limit => 20) + posts = Comment.find(:all, :order => "id desc", :conditions => ["id < :id and source_id = :hub", { :id => oldest_id, :hub => hub }], :limit => 30) if !posts.empty? oldest_id = posts.last.id -- libgit2 0.21.2