aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_xep0227.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-04-08 23:35:31 +0200
committerKim Alvefur <zash@zash.se>2022-04-08 23:35:31 +0200
commite98f777bb2ef9156e8b19f554b2403249c95a4b7 (patch)
tree032890b1584fe4f962e2d1111e4d0a0d90c2ab5e /plugins/mod_storage_xep0227.lua
parente626855282e5b813e31c080f4e386975f3841901 (diff)
downloadprosody-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/mod_storage_xep0227.lua')
-rw-r--r--plugins/mod_storage_xep0227.lua4
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