discourse/plugins/discourse-narrative-bot
Bianca Nenciu 10ee92656c
FIX: Send TL2 promotion message to correct user (#21978)
Usually, when a user is promoted to TL2 two messages are sent. The
first one is a system message 'tl2_promotion_message' which triggers a
'system_message_sent' Discourse event.

When the event is fired and if Discourse Narrative Bot is enabled, then
a second message is sent to the recipient of the first message. The
recipients was determined by looking at the list of users that can
access that topic and pick the last one. This method does not work if
'site_contact_group_name' site setting is set because it adds the group
in the list of recipients.

A solution to this problem would have been to select the last user in
the list of 'topic_allowed_users', but an even better solution is to
pass the name of the recipients when the 'system_message_sent'
Discourse event is fired.
2023-06-07 22:51:24 +03:00
..
assets PERF: Move user-tips and narrative to per-user messagebus channels (#19773) 2023-01-30 11:48:09 +00:00
autoload/jobs DEV: Apply syntax_tree formatting to `plugins/*` 2023-01-07 11:11:37 +00:00
config Update translations (#21827) 2023-05-31 09:15:16 +02:00
db UX: Update badge icons (#20462) 2023-02-28 10:42:05 +08:00
lib/discourse_narrative_bot FIX: Render links with subfolders properly in Discobot 2023-04-17 16:53:00 +02:00
public/images remove unnecessary symlink 2019-11-29 22:23:43 +01:00
spec FIX: Send TL2 promotion message to correct user (#21978) 2023-06-07 22:51:24 +03:00
plugin.rb FIX: Send TL2 promotion message to correct user (#21978) 2023-06-07 22:51:24 +03:00