# HG changeset patch # User Matthew Wild # Date 1291578888 0 # Node ID 5bde3e9d78a7fb853dd1b4cec11413eeedb40c32 # Parent d6028f4eb610d46e953ec971525afd9e07022ec5 mod_pubsub: Ensure is in correct scope when broadcasting an event diff -r d6028f4eb610 -r 5bde3e9d78a7 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 })