aboutsummaryrefslogtreecommitdiffstats
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
commit831dceeba33edcdb71b58dec6cc6741165307eb9 (patch)
treec021e1ef8a9ed5745068f4385f8ddd6533d40628
parentc5d487e42dffc5fca50e68c30d63abcdabb8a67d (diff)
downloadprosody-831dceeba33edcdb71b58dec6cc6741165307eb9.tar.gz
prosody-831dceeba33edcdb71b58dec6cc6741165307eb9.zip
mod_pep: Add all pubsub service objects to item API in order to behave across reloads
-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)