aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pep.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-20 20:23:23 +0200
committerKim Alvefur <zash@zash.se>2018-10-20 20:23:23 +0200
commit96232750af09696d91445ea018b629e910318fca (patch)
treec021e1ef8a9ed5745068f4385f8ddd6533d40628 /plugins/mod_pep.lua
parent7a3c7ee62d5b9f478d7e463c9ea094e74142b458 (diff)
downloadprosody-96232750af09696d91445ea018b629e910318fca.tar.gz
prosody-96232750af09696d91445ea018b629e910318fca.zip
mod_pep: Add all pubsub service objects to item API in order to behave across reloads
Diffstat (limited to 'plugins/mod_pep.lua')
-rw-r--r--plugins/mod_pep.lua4
1 files changed, 4 insertions, 0 deletions
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)