mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Fix new post notifications not being sent
It seems that c7aeef19ea
actually caused
a regression. With the order of execution of extensions, this event
listener was always being executed before the discussion metadata
was updated, and the listener priority was not actually necessary.
Fixes flarum/core#1646
This commit is contained in:
parent
264c730d0d
commit
f6f604b0d9
|
@ -69,7 +69,7 @@ class SendNotificationWhenReplyIsPosted
|
|||
$notify = $discussion->readers()
|
||||
->where('users.id', '!=', $post->user_id)
|
||||
->where('discussion_user.subscription', 'follow')
|
||||
->where('discussion_user.last_read_post_number', $discussion->last_post_number - 1)
|
||||
->where('discussion_user.last_read_post_number', $discussion->last_post_number)
|
||||
->get();
|
||||
|
||||
$this->notifications->sync(
|
||||
|
|
Loading…
Reference in New Issue
Block a user