aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_xep0227.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-01-10 15:48:45 +0000
committerMatthew Wild <mwild1@gmail.com>2022-01-10 15:48:45 +0000
commit68636e702c30c8fa31cf7ca2242f04788dfb91ef (patch)
tree24adbc21ab2249ae14a7cd0615c4c1b2a697e7c8 /plugins/mod_storage_xep0227.lua
parent65dff38bbb37bde241126ecadda83c9868c60755 (diff)
downloadprosody-68636e702c30c8fa31cf7ca2242f04788dfb91ef.tar.gz
prosody-68636e702c30c8fa31cf7ca2242f04788dfb91ef.zip
mod_storage_xep0227: Support for exporting nodes with no stored configuration
Diffstat (limited to 'plugins/mod_storage_xep0227.lua')
-rw-r--r--plugins/mod_storage_xep0227.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_storage_xep0227.lua b/plugins/mod_storage_xep0227.lua
index f7d3481f..f9b7fcab 100644
--- a/plugins/mod_storage_xep0227.lua
+++ b/plugins/mod_storage_xep0227.lua
@@ -354,6 +354,9 @@ handlers.pep = {
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);