# HG changeset patch # User Matthew Wild # Date 1291578888 0 # Node ID c8fcd63e95267d59808f22f10f83ee75c08f712b # Parent 150e58d69e60154e60e8df4d954fefd9c576d152 mod_pubsub: Ensure is in correct scope when broadcasting an event diff -r 150e58d69e60 -r c8fcd63e9526 plugins/mod_pubsub.lua --- a/plugins/mod_pubsub.lua Sun Dec 05 04:19:23 2010 +0100 +++ b/plugins/mod_pubsub.lua Sun Dec 05 19:54:48 2010 +0000 @@ -151,6 +151,8 @@ 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 })