# HG changeset patch # User Kim Alvefur # Date 1505321199 -7200 # Node ID 4989a625419a4e4f45061742a1f3c7688befc721 # Parent a1b0fa38fca77db466d7eea1b665e11d7f68d5d0 mod_pubsub: Comment out data persistence for now (weird without config persistence) diff -r a1b0fa38fca7 -r 4989a625419a plugins/mod_pubsub/mod_pubsub.lua --- a/plugins/mod_pubsub/mod_pubsub.lua Sat Jul 29 13:09:57 2017 +0200 +++ b/plugins/mod_pubsub/mod_pubsub.lua Wed Sep 13 18:46:39 2017 +0200 @@ -21,7 +21,9 @@ 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; @@ -38,9 +40,11 @@ end end +--[[ TODO Disabled until config persistence is implemented local function simple_itemstore(config, node) return lib_pubsub.simple_itemstore(archive, config, nil, node, expose_publisher); end +--]] function simple_broadcast(kind, node, jids, item, actor) if item then @@ -230,7 +234,9 @@ 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;