mirror of
https://github.com/discourse/discourse.git
synced 2025-04-01 02:16:02 +08:00

This regressed with the commit fa543cd. Starting from that commit, we create mention records even if a user shouldn't be notified. So when sending emails, we should be making sure if a notification was actually created for a mention. This is essentially the whole fix that we need here. Tests will be provided in a following PR.