Mercurial > prosody-modules
changeset 4306:747a14017d00
muc_room_mention_notifications: Set xmlns to what's used in the protoXEP
author | JC Brand <jc@opkode.com> |
---|---|
date | Mon, 21 Dec 2020 15:41:58 +0100 |
parents | 2ca55a4da3ea |
children | af7297e49885 |
files | mod_muc_room_mention_notifications/mod_muc_room_mention_notifications.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_muc_room_mention_notifications/mod_muc_room_mention_notifications.lua Mon Dec 21 15:39:56 2020 +0100 +++ b/mod_muc_room_mention_notifications/mod_muc_room_mention_notifications.lua Mon Dec 21 15:41:58 2020 +0100 @@ -7,7 +7,7 @@ local muc_affiliation_store = module:open_store("config", "map"); -local rmn_xmlns = "urn:xmpp:rmn:0"; +local mmn_xmlns = "urn:xmpp:mmn:0"; local reference_xmlns = "urn:xmpp:reference:0"; local forwarded_xmlns = "urn:xmpp:forward:0"; local deplay_xmlns = "urn:xmpp:delay"; @@ -40,7 +40,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 }) - :tag("mentions", { xmlns = rmn_xmlns }) + :tag("mentions", { xmlns = mmn_xmlns }) :tag("forwarded", {xmlns = forwarded_xmlns}) :tag("delay", {xmlns = deplay_xmlns, stamp = datetime.datetime()}):up() :add_child(mention_stanza)