mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 14:13:37 +08:00
Don't include deleted notifications in the unread count
This commit is contained in:
parent
396a01cc32
commit
4508813638
|
@ -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'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user