aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-02-22 07:40:30 +0100
committerKim Alvefur <zash@zash.se>2019-02-22 07:40:30 +0100
commitd940f0746902375820dd78d095a9c80cfb9f8709 (patch)
treef826fcf5e10c199772391d40fdf347f6d3d36e17 /plugins/mod_pubsub
parent42f4b6b225edf608828ca0716934c41a690964db (diff)
parent4673e4897ba9f18cc450c94a32798d3c4345d714 (diff)
downloadprosody-d940f0746902375820dd78d095a9c80cfb9f8709.tar.gz
prosody-d940f0746902375820dd78d095a9c80cfb9f8709.zip
Merge 0.11->trunk
Diffstat (limited to 'plugins/mod_pubsub')
-rw-r--r--plugins/mod_pubsub/mod_pubsub.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua
index 0036b48f..05f80365 100644
--- a/plugins/mod_pubsub/mod_pubsub.lua
+++ b/plugins/mod_pubsub/mod_pubsub.lua
@@ -3,6 +3,7 @@ local st = require "util.stanza";
local jid_bare = require "util.jid".bare;
local usermanager = require "core.usermanager";
local new_id = require "util.id".medium;
+local storagemanager = require "core.storagemanager";
local xmlns_pubsub = "http://jabber.org/protocol/pubsub";
local xmlns_pubsub_event = "http://jabber.org/protocol/pubsub#event";
@@ -42,7 +43,8 @@ end
local node_store = module:open_store(module.name.."_nodes");
local function create_simple_itemstore(node_config, node_name)
- local archive = module:open_store("pubsub_"..node_name, "archive");
+ local driver = storagemanager.get_driver(module.host, "pubsub_data");
+ local archive = driver:open("pubsub_"..node_name, "archive");
return lib_pubsub.archive_itemstore(archive, node_config, nil, node_name);
end