changeset 4313:fc5c53d9d340

mod_muc_mention_notifications: Send mention notifications from the MUC JID
author JC Brand <jc@opkode.com>
date Wed, 30 Dec 2020 16:44:21 +0100
parents 33a41503b9e3
children 149ec3abf09e
files mod_muc_mention_notifications/mod_muc_mention_notifications.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()