diff options
author | Kim Alvefur <zash@zash.se> | 2017-10-09 01:45:20 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-10-09 01:45:20 +0200 |
commit | 771b1db01bc4e63dcf3029a4789213e464093ac7 (patch) | |
tree | 37587d667625770c2b7001dfd8c5dba84f607bc3 /plugins | |
parent | f8fde466482394fcda87e007894f9a312f946d5e (diff) | |
download | prosody-771b1db01bc4e63dcf3029a4789213e464093ac7.tar.gz prosody-771b1db01bc4e63dcf3029a4789213e464093ac7.zip |
mod_pubsub: Restore persistence with one archive per node
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_pubsub/mod_pubsub.lua | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua index d4733ee4..7f45adf7 100644 --- a/plugins/mod_pubsub/mod_pubsub.lua +++ b/plugins/mod_pubsub/mod_pubsub.lua @@ -21,10 +21,6 @@ module:depends("disco"); module:add_identity("pubsub", "service", pubsub_disco_name); module:add_feature("http://jabber.org/protocol/pubsub"); ---[[ TODO Disabled until config persistence is implemented -local archive = module:open_store("pubsub", "archive"); ---]] - function handle_pubsub_iq(event) local origin, stanza = event.origin, event.stanza; local pubsub_tag = stanza.tags[1]; @@ -40,11 +36,10 @@ function handle_pubsub_iq(event) end end ---[[ TODO Disabled until config persistence is implemented local function simple_itemstore(config, node) + local archive = module:open_store("pubsub_"..node, "archive"); return lib_pubsub.simple_itemstore(archive, config, nil, node, expose_publisher); end ---]] function simple_broadcast(kind, node, jids, item, actor) if item then @@ -234,9 +229,7 @@ function module.load() autocreate_on_publish = autocreate_on_publish; autocreate_on_subscribe = autocreate_on_subscribe; - --[[ TODO Disabled until config persistence is implemented itemstore = simple_itemstore; - --]] broadcaster = simple_broadcast; get_affiliation = get_affiliation; |