Commit 21f23deba67b14179f08feb89fb568919d699dbe

Authored by Francisco Marcelo de Araújo Lima Júnior
1 parent e49657ed

#community dashboard - updating theme

plugins/community_hub/controllers/public/community_hub_plugin_public_controller.rb
... ... @@ -79,7 +79,7 @@ class CommunityHubPluginPublicController < PublicController
79 79 def newer_comments
80 80 latest_post = params[:latest_post]
81 81 hub = Article.find(params[:hub])
82   - posts = Comment.find(:all, :order => "id desc", :conditions => ["id > :id and source_id = :hub", { :id => latest_post, :hub => hub }], :limit => 20)
  82 + posts = Comment.find(:all, :order => "id desc", :conditions => ["id > :id and source_id = :hub", { :id => latest_post, :hub => hub }], :limit => 30)
83 83  
84 84 if !posts.empty?
85 85 oldest_post = posts.last.id
... ... @@ -97,7 +97,7 @@ class CommunityHubPluginPublicController < PublicController
97 97 def older_comments
98 98 oldest_id = params[:oldest_id]
99 99 hub = Article.find(params[:hub])
100   - posts = Comment.find(:all, :order => "id desc", :conditions => ["id < :id and source_id = :hub", { :id => oldest_id, :hub => hub }], :limit => 20)
  100 + posts = Comment.find(:all, :order => "id desc", :conditions => ["id < :id and source_id = :hub", { :id => oldest_id, :hub => hub }], :limit => 30)
101 101  
102 102 if !posts.empty?
103 103 oldest_id = posts.last.id
... ...