aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-02-22 07:35:44 +0100
committerKim Alvefur <zash@zash.se>2019-02-22 07:35:44 +0100
commit69de53a6995a9a18b5e4a8608ee43405cd1ffc55 (patch)
tree273541171705d85d4d4ec5da5030915bdd1ce317 /plugins
parent92c74add1861b6098a727916c0e478dabb22733f (diff)
downloadprosody-69de53a6995a9a18b5e4a8608ee43405cd1ffc55.tar.gz
prosody-69de53a6995a9a18b5e4a8608ee43405cd1ffc55.zip
mod_pep: Simplify configuration for node data (fixes #1320)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pep.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua
index 1d8c55bf..7a4aac2b 100644
--- a/plugins/mod_pep.lua
+++ b/plugins/mod_pep.lua
@@ -8,6 +8,7 @@ local calculate_hash = require "util.caps".calculate_hash;
local is_contact_subscribed = require "core.rostermanager".is_contact_subscribed;
local cache = require "util.cache";
local set = require "util.set";
+local storagemanager = require "core.storagemanager";
local xmlns_pubsub = "http://jabber.org/protocol/pubsub";
local xmlns_pubsub_event = "http://jabber.org/protocol/pubsub#event";
@@ -113,10 +114,11 @@ local function nodestore(username)
end
local function simple_itemstore(username)
+ local driver = storagemanager.get_driver(module.host, "pep_data");
return function (config, node)
if config["persist_items"] then
module:log("debug", "Creating new persistent item store for user %s, node %q", username, node);
- local archive = module:open_store("pep_"..node, "archive");
+ local archive = driver:open("pep_"..node, "archive");
return lib_pubsub.archive_itemstore(archive, config, username, node, false);
else
module:log("debug", "Creating new ephemeral item store for user %s, node %q", username, node);