# HG changeset patch # User Kim Alvefur # Date 1530413199 -7200 # Node ID 21ae6cb20dcfb251240baeff8e60012928f660a7 # Parent 82f92af4b0f387840dc41c7ca26e173d9bcf0033 mod_pubsub: Remove feature flag for data persistence since node config is now persistent diff -r 82f92af4b0f3 -r 21ae6cb20dcf plugins/mod_pubsub/mod_pubsub.lua --- a/plugins/mod_pubsub/mod_pubsub.lua Sun Jul 01 04:44:24 2018 +0200 +++ b/plugins/mod_pubsub/mod_pubsub.lua Sun Jul 01 04:46:39 2018 +0200 @@ -13,8 +13,6 @@ local pubsub_disco_name = module:get_option_string("name", "Prosody PubSub Service"); local expose_publisher = module:get_option_boolean("expose_publisher", false) -local enable_persistence = module:get_option_boolean("experimental_pubsub_item_persistence", false); - local service; local lib_pubsub = module:require "pubsub"; @@ -34,13 +32,6 @@ return lib_pubsub.archive_itemstore(archive, node_config, nil, node_name); end -if enable_persistence then - module:log("warn", "Item persistence is an experimental feature. Note that ownership information is lost on restart.") -else - create_simple_itemstore = nil; -end - - function simple_broadcast(kind, node, jids, item, actor, node_obj) if item then item = st.clone(item);