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
fix(notifications): don't notify users about their own actions
Users were receiving notifications for actions they performed themselves,
such as commenting on cards or sharing boards. Two root causes:
1. NotificationHelper: sendMention() and sendBoardShared() did not filter
out the acting user from notification recipients.
- sendMention: skip mentions where the mentioned user is the comment
author (currentUser)
- sendBoardShared (user type): only call notify() when participant
differs from currentUser; markProcessed still runs unconditionally
to clean up any pre-existing stale notifications on unshare
2. DeckProvider: $ownActivity was computed from $event->getAuthor()
before the real author was resolved. For comments, the author is
overridden to DECK_NOAUTHOR_COMMENT_SYSTEM_ENFORCED in
ActivityManager, so $ownActivity was always false. Moved the check
after the author fallback resolution.
Note: sendCardAssigned already had the self-check in AssignmentService.
Signed-off-by: ramteid <ramteid@users.noreply.github.com>
0 commit comments