1
0
mirror of https://github.com/flarum/core.git synced 2025-08-21 07:41:49 +02:00

fix(subscriptions): reply notifications not working (#3445)

* chore: subscriptions backend test infrastructure

* test: reply notification

* fix: fix reply notifications not working
This commit is contained in:
Sami Mazouz
2022-06-03 20:06:30 +01:00
committed by GitHub
parent b7332895db
commit c2ba3bb7d5
8 changed files with 236 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ class SendReplyNotification implements ShouldQueue
$notify = $discussion->readers()
->where('users.id', '!=', $post->user_id)
->where('discussion_user.subscription', 'follow')
->where('discussion_user.last_read_post_number', $this->lastPostNumber)
->where('discussion_user.last_read_post_number', $this->lastPostNumber - 1)
->get();
$notifications->sync(