plugins/mod_pubsub.lua

changeset 3700
c8fcd63e9526
parent 3699
150e58d69e60
child 3760
3bfb65496773
--- 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 })

mercurial