diff options
author | Kim Alvefur <zash@zash.se> | 2017-10-08 01:56:44 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-10-08 01:56:44 +0200 |
commit | 4d75ff22170f3cd0e8c61082bb195435fe8cbe3c (patch) | |
tree | 35b5956d36b156d01f4c8591eaaec21d3127464a /plugins/mod_pep_plus.lua | |
parent | 72a554f9152e3a84a089f7c4fc40d5e320fced1c (diff) | |
download | prosody-4d75ff22170f3cd0e8c61082bb195435fe8cbe3c.tar.gz prosody-4d75ff22170f3cd0e8c61082bb195435fe8cbe3c.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.lua | 5 |
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; |