plugins/mod_pep.lua
changeset 9182 82fad995a149
parent 9163 e13a1a0b0107
child 9192 8fadd3d6c8d3
--- a/plugins/mod_pep.lua	Thu Aug 16 06:05:11 2018 +0200
+++ b/plugins/mod_pep.lua	Thu Aug 16 14:32:21 2018 +0200
@@ -124,6 +124,9 @@
 local function get_broadcaster(username)
 	local user_bare = jid_join(username, host);
 	local function simple_broadcast(kind, node, jids, item)
+		if kind == "retract" then
+			kind = "items"; -- XEP-0060 signals retraction in an <items> container
+		end
 		local message = st.message({ from = user_bare, type = "headline" })
 			:tag("event", { xmlns = xmlns_pubsub_event })
 				:tag(kind, { node = node });