Software /
code /
prosody
Comparison
plugins/mod_storage_xep0227.lua @ 12454:b2438f374b3e 0.12
mod_storage_xep0227: Handle missing {pubsub#owner}pubsub element (fixes #1740)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 07 Apr 2022 17:22:02 +0100 |
parent | 12355:a0ff5c438e9d |
child | 12456:64722dcb0b8c |
comparison
equal
deleted
inserted
replaced
12452:c475a7802169 | 12454:b2438f374b3e |
---|---|
297 subscribers = {}; | 297 subscribers = {}; |
298 }; | 298 }; |
299 ]] | 299 ]] |
300 }; | 300 }; |
301 local owner_el = user_el:get_child("pubsub", xmlns_pubsub_owner); | 301 local owner_el = user_el:get_child("pubsub", xmlns_pubsub_owner); |
302 if not owner_el then | |
303 return nil; | |
304 end | |
302 for node_el in owner_el:childtags() do | 305 for node_el in owner_el:childtags() do |
303 local node_name = node_el.attr.node; | 306 local node_name = node_el.attr.node; |
304 local node = nodes[node_name]; | 307 local node = nodes[node_name]; |
305 if not node then | 308 if not node then |
306 node = { | 309 node = { |