mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +08:00
Fix new notifications on old subjects not appearing
This commit is contained in:
parent
2dd0f88305
commit
5c09dcd523
|
@ -22,7 +22,7 @@ class NotificationRepository
|
|||
->whereIn('type', $user->getAlertableNotificationTypes())
|
||||
->where('is_deleted', false)
|
||||
->groupBy('type', 'subject_id')
|
||||
->latest('time')
|
||||
->orderByRaw('MAX(time) DESC')
|
||||
->skip($offset)
|
||||
->take($limit);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user