Changeset

3246:2a54b331f011

mod_profile: Pass item id onto pubsub container element
author Kim Alvefur <zash@zash.se>
date Mon, 20 Aug 2018 21:40:48 +0200
parents 3245:1d57f485efef
children 3247:ada7a0c7221c
files mod_profile/mod_profile.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_profile/mod_profile.lua	Mon Aug 20 21:20:53 2018 +0200
+++ b/mod_profile/mod_profile.lua	Mon Aug 20 21:40:48 2018 +0200
@@ -52,7 +52,7 @@
 end
 
 local function item_container(id, payload)
-	return id, st.stanza("item", { id = "current", xmlns = "http://jabber.org/protocol/pubsub"; })
+	return id, st.stanza("item", { id = id or "current", xmlns = "http://jabber.org/protocol/pubsub"; })
 		:add_child(payload);
 end