Commit 6793018df460a3b679f6ee3425c3d6c932fe7919

Authored by Francisco Marcelo de Araújo Lima Júnior
1 parent 5945f903
Exists in master

#community dashboard - updating theme

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
... ...