aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-05 19:54:48 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-05 19:54:48 +0000
commit0cfb6e102880ad31ee7336ab13179f6fb671d69e (patch)
tree0b3329af965d1a2c431d17d17f58539f70587fb7 /plugins/mod_pubsub.lua
parent02f5edae680279be548800ce74496626eaf92d14 (diff)
downloadprosody-0cfb6e102880ad31ee7336ab13179f6fb671d69e.tar.gz
prosody-0cfb6e102880ad31ee7336ab13179f6fb671d69e.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.lua2
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 })