From: Matthew Wild Date: Sun, 5 Dec 2010 19:54:48 +0000 (+0000) Subject: mod_pubsub: Ensure is in correct scope when broadcasting an event X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=43b20a03cfa274dc2ac7ea8cfd631577d930daae;hp=51ce5a69ca27e0df1e81a821c0cc7d9da11b59d8;p=prosody.git mod_pubsub: Ensure is in correct scope when broadcasting an event --- diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua index 0644001f..0953de28 100644 --- a/plugins/mod_pubsub.lua +++ b/plugins/mod_pubsub.lua @@ -151,6 +151,8 @@ function handlers.set_retract(origin, stanza, retract) end function simple_broadcast(node, jids, item) + item = st.clone(item); + item.attr.xmlns = nil; -- Clear the pubsub namespace local message = st.message({ from = module.host, type = "headline" }) :tag("event", { xmlns = xmlns_pubsub_event }) :tag("items", { node = node })