From e98f777bb2ef9156e8b19f554b2403249c95a4b7 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 8 Apr 2022 23:35:31 +0200 Subject: 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. --- plugins/mod_storage_xep0227.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins') 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 -- cgit v1.2.3