diff --git a/framework/core/src/Core/Users/User.php b/framework/core/src/Core/Users/User.php index 7ced9ff8e..ecdc0d47a 100755 --- a/framework/core/src/Core/Users/User.php +++ b/framework/core/src/Core/Users/User.php @@ -368,6 +368,7 @@ class User extends Model ->whereIn('type', $this->getAlertableNotificationTypes()) ->where('time', '>', $this->notification_read_time ?: 0) ->where('is_read', 0) + ->where('is_deleted', 0) ->count($this->getConnection()->raw('DISTINCT type, subject_id')); }