Comparison

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
comparison
equal deleted inserted replaced
11719:3986b5a0c3fc 11720:72512c0858b3
201 set_service(pubsub.new({ 201 set_service(pubsub.new({
202 autocreate_on_publish = autocreate_on_publish; 202 autocreate_on_publish = autocreate_on_publish;
203 autocreate_on_subscribe = autocreate_on_subscribe; 203 autocreate_on_subscribe = autocreate_on_subscribe;
204 expose_publisher = expose_publisher; 204 expose_publisher = expose_publisher;
205 205
206 node_defaults = {
207 ["persist_items"] = true;
208 };
206 nodestore = node_store; 209 nodestore = node_store;
207 itemstore = create_simple_itemstore; 210 itemstore = create_simple_itemstore;
208 broadcaster = simple_broadcast; 211 broadcaster = simple_broadcast;
209 itemcheck = is_item_stanza; 212 itemcheck = is_item_stanza;
210 check_node_config = check_node_config; 213 check_node_config = check_node_config;