You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current Behavior
If someone posts to a discussion that is assigned to multiple tags, users that follow multiple of those tags, get the notification multiple times. This even applies if a discussion is assigned to a single tag that has a parent tag, since flarum assigns the parent and the child tag individually to the discussion.
Steps to Reproduce
Create a main tag and a sub tag, where the main tag is the parent of the sub tag.
Follow/lurk both tags, the main tag and the sub tag.
As another user, create a new discussion with the sub tag assigned, or reply to such a discussion.
The first user receives two emails with exactly the same content.
Expected Behavior
Per post only a single notification should be sent.
Possible solution(s)
The database queries in src/Jobs/SendNotificationWhen...*.php should add a distinct-filter. Currently, users appear multiple times because of the join with tag_user. I'm not confident with Eloquent, so I leave the coding to others.
Bug Report
Current Behavior
If someone posts to a discussion that is assigned to multiple tags, users that follow multiple of those tags, get the notification multiple times. This even applies if a discussion is assigned to a single tag that has a parent tag, since flarum assigns the parent and the child tag individually to the discussion.
Steps to Reproduce
Expected Behavior
Per post only a single notification should be sent.
Environment
Possible solution(s)
The database queries in
src/Jobs/SendNotificationWhen...*.php
should add a distinct-filter. Currently, users appear multiple times because of the join withtag_user
. I'm not confident with Eloquent, so I leave the coding to others.Relevant lines:
follow-tags/src/Jobs/SendNotificationWhenDiscussionIsStarted.php
Line 52 in 9b2052f
follow-tags/src/Jobs/SendNotificationWhenDiscussionIsReTagged.php
Line 59 in 9b2052f
follow-tags/src/Jobs/SendNotificationWhenReplyIsPosted.php
Line 58 in 9b2052f
The text was updated successfully, but these errors were encountered: