# HG changeset patch # User JC Brand # Date 1609343061 -3600 # Node ID fc5c53d9d34091a326830998fdeb0ed5cfc375a8 # Parent 33a41503b9e3560089c8c220340feb9cac4a222e mod_muc_mention_notifications: Send mention notifications from the MUC JID diff -r 33a41503b9e3 -r fc5c53d9d340 mod_muc_mention_notifications/mod_muc_mention_notifications.lua --- a/mod_muc_mention_notifications/mod_muc_mention_notifications.lua Tue Dec 22 11:27:20 2020 +0100 +++ b/mod_muc_mention_notifications/mod_muc_mention_notifications.lua Wed Dec 30 16:44:21 2020 +0100 @@ -39,7 +39,7 @@ -- Send a single notification for a room, updating data structures as needed local function send_single_notification(user_bare_jid, room_jid, mention_stanza) - local notification = st.message({ to = user_bare_jid, from = module.host }) + local notification = st.message({ to = user_bare_jid, from = room_jid }) :tag("mentions", { xmlns = mmn_xmlns }) :tag("forwarded", {xmlns = forwarded_xmlns}) :tag("delay", {xmlns = deplay_xmlns, stamp = datetime.datetime()}):up()