diff options
author | Kim Alvefur <zash@zash.se> | 2022-04-08 23:35:31 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-04-08 23:35:31 +0200 |
commit | e98f777bb2ef9156e8b19f554b2403249c95a4b7 (patch) | |
tree | 032890b1584fe4f962e2d1111e4d0a0d90c2ab5e /plugins | |
parent | e626855282e5b813e31c080f4e386975f3841901 (diff) | |
download | prosody-e98f777bb2ef9156e8b19f554b2403249c95a4b7.tar.gz prosody-e98f777bb2ef9156e8b19f554b2403249c95a4b7.zip |
mod_storage_xep0227: Fix mapping of nodes without explicit configuration
Turns out this table was wrong, it's missing some fields which are
required and it's 'name', not 'node'. Setting it to the boolean true
invokes compatibility behavior in mod_pep which results in the correct
default structure.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_storage_xep0227.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/mod_storage_xep0227.lua b/plugins/mod_storage_xep0227.lua index 285428d6..5c3cf7f6 100644 --- a/plugins/mod_storage_xep0227.lua +++ b/plugins/mod_storage_xep0227.lua @@ -306,9 +306,7 @@ handlers.pep = { return nil; end for node_el in pubsub_el:childtags("items") do - nodes[node_el.attr.node] = { - node = node_el.attr.node; - } + nodes[node_el.attr.node] = true; -- relies on COMPAT behavior in mod_pep end return nodes; end |