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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user