aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_xep0227.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-04-07 17:22:02 +0100
committerMatthew Wild <mwild1@gmail.com>2022-04-07 17:22:02 +0100
commitea30ed9428d1e6fcd4290ad4230f9520801d1a13 (patch)
tree3546f1b4d6b75563f3c24d360d2667f52c8779a6 /plugins/mod_storage_xep0227.lua
parent03299ee37d3ceb4173a01567d2285869e8737510 (diff)
downloadprosody-ea30ed9428d1e6fcd4290ad4230f9520801d1a13.tar.gz
prosody-ea30ed9428d1e6fcd4290ad4230f9520801d1a13.zip
mod_storage_xep0227: Handle missing {pubsub#owner}pubsub element (fixes #1740)
Diffstat (limited to 'plugins/mod_storage_xep0227.lua')
-rw-r--r--plugins/mod_storage_xep0227.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_storage_xep0227.lua b/plugins/mod_storage_xep0227.lua
index 9a3ca002..c1c7a62c 100644
--- a/plugins/mod_storage_xep0227.lua
+++ b/plugins/mod_storage_xep0227.lua
@@ -299,6 +299,9 @@ handlers.pep = {
]]
};
local owner_el = user_el:get_child("pubsub", xmlns_pubsub_owner);
+ if not owner_el then
+ return nil;
+ end
for node_el in owner_el:childtags() do
local node_name = node_el.attr.node;
local node = nodes[node_name];