-
-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reply notifications not being sent out to users #3443
Comments
As the post has already been saved when the listener is dispatched, why don't we use |
Yes I believe we could just do that, I would just like to make sure that is the case first, I'll investigate further sometime later today. |
Is there a chance for this fix to be released as a patch? I would personally skip 1.3.0 altogether otherwise... |
@matteocontrini yes we'll do a patch release for this soon. |
Bug Report
Current Behavior
When someone replies to a discussion you follow, you do not receive a notification.
Steps to Reproduce
Expected Behavior
A notification should be sent out.
Environment
Possible Solution
Context: If the actor has read the post number 6 which at the time was the last, and someone replies, the subscriptions extension sends out notifications to those following who have last read post number 6. It doesn't send notifications to all those who have last read less than post number 7 (newest reply) to avoid repetitive notifications.
Additional Context
It does this by listening to the
Posted
event and using the$event->post->discussion->last_post_number
(should be 6), it expects to run beforeDiscussionMetadataUpdater
subscriber (updateslast_post_number
to 7), however in 1.3 this PR (#3373) changes the behavior and leads to extension listeners to run after all core listeners. So what's happening now is that thelast_post_number
used in the subscriptions listener has already been updated to 7 in this example.Potential Solutions
last_post_number - 1
change in the subscriptions listener. This wouldn't be a solution if we were still usingpost_number_index
, but since we now count new post numbers based on previous existing post number, it might be fine to do.The text was updated successfully, but these errors were encountered: