From 6d2039efffe90919b9764b8ce244e92c1f851745 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 20 Oct 2018 20:23:23 +0200 Subject: mod_pep: Add all pubsub service objects to item API in order to behave across reloads --- plugins/mod_pep.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/mod_pep.lua') diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index 0d52a2fd..f1228b5a 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -43,6 +43,10 @@ end 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) -- cgit v1.2.3