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.
This commit is contained in:
Kim Alvefur 2022-04-08 23:35:31 +02:00
parent e626855282
commit e98f777bb2

View file

@ -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