aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-12-23 02:56:10 +0100
committerKim Alvefur <zash@zash.se>2018-12-23 02:56:10 +0100
commitb4e3b4ea25135148113b1fce6207b28889a4eb7e (patch)
tree5c203161a4e4fa935a6a34b3f7e6bce5136abbe8
parent36d31b94bf54bac423fdeac12c4978d22ca1b6f8 (diff)
downloadprosody-b4e3b4ea25135148113b1fce6207b28889a4eb7e.tar.gz
prosody-b4e3b4ea25135148113b1fce6207b28889a4eb7e.zip
mod_pep: Set an 'id' on notifications
mod_pubsub got this in f2d35eee69c9
-rw-r--r--plugins/mod_pep.lua4
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 });