diff --git a/src/User/User.php b/src/User/User.php index 3fc2f21106..45c248059f 100644 --- a/src/User/User.php +++ b/src/User/User.php @@ -753,7 +753,7 @@ public static function getNotificationPreferenceKey($type, $method) */ public function refreshCommentCount() { - $this->comment_count = $this->posts()->count(); + $this->comment_count = $this->posts()->where('type', 'comment')->count(); return $this; }