From 811613425828e4f4d89f6297886143663bce721c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 21 Jul 2021 23:35:08 +0200 Subject: mod_pubsub: Explicitly enable persistence by default to preserve behavior Since nodes were always persistent according to the XEP-0060 definition. Whether data is stored in memory or on disk was not what this setting was meant for. --- plugins/mod_pubsub/mod_pubsub.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/mod_pubsub/mod_pubsub.lua') diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua index d823657a..331364d5 100644 --- a/plugins/mod_pubsub/mod_pubsub.lua +++ b/plugins/mod_pubsub/mod_pubsub.lua @@ -203,6 +203,9 @@ function module.load() autocreate_on_subscribe = autocreate_on_subscribe; expose_publisher = expose_publisher; + node_defaults = { + ["persist_items"] = true; + }; nodestore = node_store; itemstore = create_simple_itemstore; broadcaster = simple_broadcast; -- cgit v1.2.3