From f9324b421d4ffe35a945d79a74f8ee41f3b88ce1 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Tue, 16 Jul 2013 16:49:47 -0300 Subject: [PATCH] [macro-support-review] Fixing comments count --- app/controllers/public/content_viewer_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/public/content_viewer_controller.rb b/app/controllers/public/content_viewer_controller.rb index 75ae263..55237f7 100644 --- a/app/controllers/public/content_viewer_controller.rb +++ b/app/controllers/public/content_viewer_controller.rb @@ -99,9 +99,9 @@ class ContentViewerController < ApplicationController end end - @comments = @page.comments.without_spam.without_reply - @comments = @plugins.filter(:unavailable_comments, @comments) + @comments = @page.comments.without_spam @comments_count = @comments.count + @comments = @plugins.filter(:unavailable_comments, @comments.without_reply) @comments = @comments.paginate(:per_page => per_page, :page => params[:comment_page] ) if params[:slideshow] -- libgit2 0.21.2