1
0
mirror of https://github.com/flarum/core.git synced 2025-07-16 14:26:25 +02:00

Revert notifications_from table

I didn't think this change through and it's going to be too difficult
to implement right now. It can wait until we do the notifications
revamp. For now reverting back to the old structure, with the
`sender_id` column renamed to `from_user_id`.
This commit is contained in:
Toby Zerner
2018-07-21 18:35:50 +09:30
parent 420bb2efc8
commit aa4c4b07bd
8 changed files with 21 additions and 70 deletions

View File

@ -32,7 +32,7 @@ class NotificationRepository
)
->where('user_id', $user->id)
->whereIn('type', $user->getAlertableNotificationTypes())
->whereNull('deleted_at')
->where('is_deleted', false)
->groupBy('type', 'subject_id')
->orderByRaw('MAX(created_at) DESC')
->skip($offset)