Software /
code /
prosody
Diff
plugins/mod_pubsub/mod_pubsub.lua @ 11720:72512c0858b3
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 21 Jul 2021 23:35:08 +0200 |
parent | 11718:d79f5431f31b |
child | 11725:789da12cf232 |
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua Wed Jul 21 21:22:17 2021 +0200 +++ b/plugins/mod_pubsub/mod_pubsub.lua Wed Jul 21 23:35:08 2021 +0200 @@ -203,6 +203,9 @@ 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;