diff options
author | Kim Alvefur <zash@zash.se> | 2018-12-23 02:56:10 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-12-23 02:56:10 +0100 |
commit | 6eb576e9d9282dc9cb27b0a44472183280abaafd (patch) | |
tree | 5c203161a4e4fa935a6a34b3f7e6bce5136abbe8 | |
parent | aef3d7a500f54e8d44303b082ade3f5a14883efd (diff) | |
download | prosody-6eb576e9d9282dc9cb27b0a44472183280abaafd.tar.gz prosody-6eb576e9d9282dc9cb27b0a44472183280abaafd.zip |
mod_pep: Set an 'id' on notifications
mod_pubsub got this in f2d35eee69c9
-rw-r--r-- | plugins/mod_pep.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index 6275d47c..5e3f43f2 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -8,6 +8,7 @@ local calculate_hash = require "util.caps".calculate_hash; local is_contact_subscribed = require "core.rostermanager".is_contact_subscribed; local cache = require "util.cache"; local set = require "util.set"; +local new_id = require "util.id".medium; local xmlns_pubsub = "http://jabber.org/protocol/pubsub"; local xmlns_pubsub_event = "http://jabber.org/protocol/pubsub#event"; @@ -147,7 +148,8 @@ local function get_broadcaster(username) end end - local message = st.message({ from = user_bare, type = "headline" }) + local id = new_id(); + local message = st.message({ from = user_bare, type = "headline", id = id }) :tag("event", { xmlns = xmlns_pubsub_event }) :tag(kind, { node = node }); |