Diff

plugins/mod_storage_xep0227.lua @ 12460:f7e40f1a5f53 0.12

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.
author Kim Alvefur <zash@zash.se>
date Fri, 08 Apr 2022 23:35:31 +0200
parent 12458:10cc52e4b310
child 12589:39ae08180c81
line wrap: on
line diff
--- a/plugins/mod_storage_xep0227.lua	Fri Apr 08 15:09:19 2022 +0200
+++ b/plugins/mod_storage_xep0227.lua	Fri Apr 08 23:35:31 2022 +0200
@@ -306,9 +306,7 @@
 				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