Commit f9324b421d4ffe35a945d79a74f8ee41f3b88ce1
1 parent
5004be38
Exists in
master
and in
28 other branches
[macro-support-review] Fixing comments count
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/controllers/public/content_viewer_controller.rb
| ... | ... | @@ -99,9 +99,9 @@ class ContentViewerController < ApplicationController |
| 99 | 99 | end |
| 100 | 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 | 103 | @comments_count = @comments.count |
| 104 | + @comments = @plugins.filter(:unavailable_comments, @comments.without_reply) | |
| 105 | 105 | @comments = @comments.paginate(:per_page => per_page, :page => params[:comment_page] ) |
| 106 | 106 | |
| 107 | 107 | if params[:slideshow] | ... | ... |