# HG changeset patch # User Kim Alvefur # Date 1579908574 -3600 # Node ID 8dbca6a93988862d784ffff257d72a409596088f # Parent 8d13b9c9ba7512b703b4bb08ac4472bac80c476d mod_rest: Only pass trough valid disco#item item attributes diff -r 8d13b9c9ba75 -r 8dbca6a93988 mod_rest/jsonmap.lib.lua --- a/mod_rest/jsonmap.lib.lua Sat Jan 25 00:20:00 2020 +0100 +++ b/mod_rest/jsonmap.lib.lua Sat Jan 25 00:29:34 2020 +0100 @@ -87,7 +87,7 @@ local disco = st.stanza("query", { xmlns = "http://jabber.org/protocol/disco#items" }); if type(s) == "table" then for _, item in ipairs(s) do - disco:tag("item", item); + disco:tag("item", { jid = item.jid, node = item.node, name = item.name }); end end return disco;