diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-12-05 19:54:48 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-12-05 19:54:48 +0000 |
commit | 44b11d97304cd941ca805cfb19086083f11d4070 (patch) | |
tree | 7bf877486fef26bc09dd87667061585cf218d5e2 /plugins/mod_pubsub.lua | |
parent | 649c7432b75f0faea2e5e7ba7336138f98a8e001 (diff) | |
download | prosody-44b11d97304cd941ca805cfb19086083f11d4070.tar.gz prosody-44b11d97304cd941ca805cfb19086083f11d4070.zip |
mod_pubsub: Ensure <item> is in correct scope when broadcasting an event
Diffstat (limited to 'plugins/mod_pubsub.lua')
-rw-r--r-- | plugins/mod_pubsub.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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 }) |