mod_profile: Add xmlns on <item> in order to pass item validation in mod_pubsub
authorKim Alvefur <zash@zash.se>
Tue, 24 Jul 2018 16:28:02 +0200
changeset 3195 a1c92d62b861
parent 3194 76a2aca48b4f
child 3196 134e73ebfa5f
mod_profile: Add xmlns on <item> in order to pass item validation in mod_pubsub
mod_profile/mod_profile.lua
--- a/mod_profile/mod_profile.lua	Tue Jul 24 16:27:59 2018 +0200
+++ b/mod_profile/mod_profile.lua	Tue Jul 24 16:28:02 2018 +0200
@@ -51,7 +51,7 @@
 end
 
 local function item_container(id, payload)
-	return id, st.stanza("item", { id = "current" })
+	return id, st.stanza("item", { id = "current", xmlns = "http://jabber.org/protocol/pubsub"; })
 		:add_child(payload);
 end