From 23eba622a2389044f9891ec4f24ff2b7f54cdb6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Tue, 22 Sep 2015 16:26:20 +0200 Subject: [PATCH] fix bug when blocking users --- app/models/comment.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/comment.rb b/app/models/comment.rb index 6a3125285..187e35037 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -73,11 +73,11 @@ class Comment < ActiveRecord::Base end def after_hide - commentable_type.constantize.reset_counters(commentable_id, :comments) + commentable_type.constantize.with_hidden.reset_counters(commentable_id, :comments) end def after_restore - commentable_type.constantize.reset_counters(commentable_id, :comments) + commentable_type.constantize.with_hidden.reset_counters(commentable_id, :comments) end def reply?