diff options
author | Kim Alvefur <zash@zash.se> | 2021-07-21 23:35:08 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-07-21 23:35:08 +0200 |
commit | 811613425828e4f4d89f6297886143663bce721c (patch) | |
tree | 82a2c00b182a5cb6d8ef60e48638f27a727c1c8c /plugins | |
parent | 3756e3c8350e942e5765df06dc24be712d2e3d7a (diff) | |
download | prosody-811613425828e4f4d89f6297886143663bce721c.tar.gz prosody-811613425828e4f4d89f6297886143663bce721c.zip |
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.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_pubsub/mod_pubsub.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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; |