Sun, 05 Dec 2010 19:54:48 +0000
mod_pubsub: Ensure <item> is in correct scope when broadcasting an event
plugins/mod_pubsub.lua | file | annotate | diff | comparison | revisions |
--- 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 })