Commit 6793018df460a3b679f6ee3425c3d6c932fe7919
1 parent
5945f903
Exists in
master
#community dashboard - updating theme
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
controllers/public/community_hub_plugin_public_controller.rb
@@ -79,7 +79,7 @@ class CommunityHubPluginPublicController < PublicController | @@ -79,7 +79,7 @@ class CommunityHubPluginPublicController < PublicController | ||
79 | def newer_comments | 79 | def newer_comments |
80 | latest_post = params[:latest_post] | 80 | latest_post = params[:latest_post] |
81 | hub = Article.find(params[:hub]) | 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 | if !posts.empty? | 84 | if !posts.empty? |
85 | oldest_post = posts.last.id | 85 | oldest_post = posts.last.id |
@@ -97,7 +97,7 @@ class CommunityHubPluginPublicController < PublicController | @@ -97,7 +97,7 @@ class CommunityHubPluginPublicController < PublicController | ||
97 | def older_comments | 97 | def older_comments |
98 | oldest_id = params[:oldest_id] | 98 | oldest_id = params[:oldest_id] |
99 | hub = Article.find(params[:hub]) | 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 | if !posts.empty? | 102 | if !posts.empty? |
103 | oldest_id = posts.last.id | 103 | oldest_id = posts.last.id |