Software /
code /
prosody
Changeset
12174:a38b7cb5fd6a
mod_storage_xep0227: Support for exporting nodes with no stored configuration
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 10 Jan 2022 15:48:45 +0000 |
parents | 12173:270047afa6af |
children | 12175:39921b979edb |
files | plugins/mod_storage_xep0227.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_storage_xep0227.lua Mon Jan 10 15:47:59 2022 +0000 +++ b/plugins/mod_storage_xep0227.lua Mon Jan 10 15:48:45 2022 +0000 @@ -354,6 +354,9 @@ local owner_el = st.stanza("pubsub", { xmlns = xmlns_pubsub_owner }); for node_name, node_data in pairs(data) do + if node_data == true then + node_data = { config = {} }; + end local configure_el = st.stanza("configure", { node = node_name }) :add_child(lib_pubsub.node_config_form:form(node_data.config, "submit")); owner_el:add_child(configure_el);