Commit f9324b421d4ffe35a945d79a74f8ee41f3b88ce1

Authored by Rodrigo Souto
1 parent 5004be38

[macro-support-review] Fixing comments count

app/controllers/public/content_viewer_controller.rb
@@ -99,9 +99,9 @@ class ContentViewerController < ApplicationController @@ -99,9 +99,9 @@ class ContentViewerController < ApplicationController
99 end 99 end
100 end 100 end
101 101
102 - @comments = @page.comments.without_spam.without_reply  
103 - @comments = @plugins.filter(:unavailable_comments, @comments) 102 + @comments = @page.comments.without_spam
104 @comments_count = @comments.count 103 @comments_count = @comments.count
  104 + @comments = @plugins.filter(:unavailable_comments, @comments.without_reply)
105 @comments = @comments.paginate(:per_page => per_page, :page => params[:comment_page] ) 105 @comments = @comments.paginate(:per_page => per_page, :page => params[:comment_page] )
106 106
107 if params[:slideshow] 107 if params[:slideshow]