# HG changeset patch # User Kim Alvefur # Date 1626903308 -7200 # Node ID 72512c0858b3c8c8bd3a7d726f3190edfd2b3550 # Parent 3986b5a0c3fcbbb0a0b0229cbb0584413a156246 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. diff -r 3986b5a0c3fc -r 72512c0858b3 plugins/mod_pubsub/mod_pubsub.lua --- 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; diff -r 3986b5a0c3fc -r 72512c0858b3 spec/scansion/pubsub_multi_items.scs --- a/spec/scansion/pubsub_multi_items.scs Wed Jul 21 21:22:17 2021 +0200 +++ b/spec/scansion/pubsub_multi_items.scs Wed Jul 21 23:35:08 2021 +0200 @@ -47,7 +47,7 @@ 20 - 0 + 1