aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-02-02 19:46:33 +0000
committerMatthew Wild <mwild1@gmail.com>2018-02-02 19:46:33 +0000
commit7ee19812b598d5774ea05685a0cf2f93ac2f06a2 (patch)
treefb2998aa9268b717a31eff8f2b12013aa3fbde2e /plugins/mod_pubsub
parent4009623774f4cc298d410d4a4639e6f33edb6425 (diff)
downloadprosody-7ee19812b598d5774ea05685a0cf2f93ac2f06a2.tar.gz
prosody-7ee19812b598d5774ea05685a0cf2f93ac2f06a2.zip
mod_pubsub: Add nodestore to service configuration
Diffstat (limited to 'plugins/mod_pubsub')
-rw-r--r--plugins/mod_pubsub/mod_pubsub.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua
index a03088d1..60f40374 100644
--- a/plugins/mod_pubsub/mod_pubsub.lua
+++ b/plugins/mod_pubsub/mod_pubsub.lua
@@ -26,6 +26,8 @@ function handle_pubsub_iq(event)
return lib_pubsub.handle_pubsub_iq(event, service);
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");
return lib_pubsub.archive_itemstore(archive, node_config, nil, node_name);
@@ -202,6 +204,7 @@ function module.load()
autocreate_on_publish = autocreate_on_publish;
autocreate_on_subscribe = autocreate_on_subscribe;
+ nodestore = node_store;
itemstore = create_simple_itemstore;
broadcaster = simple_broadcast;
get_affiliation = get_affiliation;