# HG changeset patch # User Kim Alvefur # Date 1540059803 -7200 # Node ID 07665733b332978a228d76a503094313e0ebc384 # Parent 5fe1b08e6353706c052f9f0192f33221c861c2d6 mod_pep: Add all pubsub service objects to item API in order to behave across reloads diff -r 5fe1b08e6353 -r 07665733b332 plugins/mod_pep.lua --- a/plugins/mod_pep.lua Sun Oct 21 21:12:38 2018 +0200 +++ b/plugins/mod_pep.lua Sat Oct 20 20:23:23 2018 +0200 @@ -43,6 +43,10 @@ function module.restore(data) services = data.services; recipients = data.recipients; + for username, service in pairs(services) do + local user_bare = jid_join(username, host); + module:add_item("pep-service", { service = service, jid = user_bare }); + end end function is_item_stanza(item)