mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 05:50:14 +08:00
54b2a85b27
When making the list of users to notify we set `all_mentioned_user_ids` key on the `to_notify` Hash. This hash will be passed around until the actual moment where we send the notifications: ```ruby identifier_text = case identifier_type when :here_mentions "@here" when :global_mentions "@all" when :direct_mentions "" else "@#{identifier_type}" end ``` As not found `all_mentioned_user_ids` would end up being sent as `@all_mentioned_user_ids` which is obviously incorrect. This commit is a direct fix to the issue and will remove the key as soon as we have used it sooner up in the chain. This bug was reproducible when doing this sequence of events: - create a message with a direct mention: `@bob hi` - edit this message into a global mention `@all hi` |
||
---|---|---|
.. | ||
chat | ||
discourse_dev | ||
email_controller_helper | ||
onebox/templates | ||
tasks | ||
service_runner.rb |