mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 14:13:37 +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())
|
->whereIn('type', $user->getAlertableNotificationTypes())
|
||||||
->where('is_deleted', false)
|
->where('is_deleted', false)
|
||||||
->groupBy('type', 'subject_id')
|
->groupBy('type', 'subject_id')
|
||||||
->latest('time')
|
->orderByRaw('MAX(time) DESC')
|
||||||
->skip($offset)
|
->skip($offset)
|
||||||
->take($limit);
|
->take($limit);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user