Changeset

8216:d80233ca006d

mod_pubsub: Pass xmlns correctly
author Kim Alvefur <zash@zash.se>
date Wed, 26 Apr 2017 12:05:06 +0200
parents 8215:835bb32c36b4
children 8217:5f4e0d67b82a
files plugins/mod_pubsub/pubsub.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_pubsub/pubsub.lib.lua	Sat Apr 15 09:35:33 2017 +0100
+++ b/plugins/mod_pubsub/pubsub.lib.lua	Wed Apr 26 12:05:06 2017 +0200
@@ -318,7 +318,7 @@
 end
 
 local function create_encapsulating_item(id, payload, publisher, expose_publisher)
-	local item = st.stanza("item", { id = id }, xmlns_pubsub);
+	local item = st.stanza("item", { id = id, xmlns = xmlns_pubsub });
 	item:add_child(payload);
 	if expose_publisher then
 		item.attr.publisher = publisher;