aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pep_plus.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-10-08 01:56:44 +0200
committerKim Alvefur <zash@zash.se>2017-10-08 01:56:44 +0200
commitb4129893d907d7524b61c31d2574f58945118ed4 (patch)
tree35b5956d36b156d01f4c8591eaaec21d3127464a /plugins/mod_pep_plus.lua
parent2572082717a2bd675cfed0c18d362d56b90346c1 (diff)
downloadprosody-b4129893d907d7524b61c31d2574f58945118ed4.tar.gz
prosody-b4129893d907d7524b61c31d2574f58945118ed4.zip
mod_pep_plus, mod_pubsub: Store node content in separate archive stores
Diffstat (limited to 'plugins/mod_pep_plus.lua')
-rw-r--r--plugins/mod_pep_plus.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/mod_pep_plus.lua b/plugins/mod_pep_plus.lua
index 7872c03f..e366b859 100644
--- a/plugins/mod_pep_plus.lua
+++ b/plugins/mod_pep_plus.lua
@@ -19,8 +19,6 @@ local services = {};
local recipients = {};
local hash_map = {};
-local archive = module:open_store("pubsub", "archive");
-
function module.save()
return { services = services };
end
@@ -38,6 +36,8 @@ end
local function simple_itemstore(user)
return function (config, node)
+ module:log("debug", "new simple_itemstore(%q, %q)", user, node);
+ local archive = module:open_store("pep_"..node, "archive");
return lib_pubsub.simple_itemstore(archive, config, user, node, false);
end
end
@@ -62,6 +62,7 @@ local function get_broadcaster(name)
end
function get_pep_service(name)
+ module:log("debug", "get_pep_service(%q)");
local service = services[name];
if service then
return service;