diff options
-rw-r--r-- | plugins/mod_pubsub/mod_pubsub.lua | 3 | ||||
-rw-r--r-- | spec/scansion/pubsub_multi_items.scs | 2 | ||||
-rw-r--r-- | util/pubsub.lua | 2 |
3 files changed, 5 insertions, 2 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; diff --git a/spec/scansion/pubsub_multi_items.scs b/spec/scansion/pubsub_multi_items.scs index 247731f1..331093ca 100644 --- a/spec/scansion/pubsub_multi_items.scs +++ b/spec/scansion/pubsub_multi_items.scs @@ -47,7 +47,7 @@ Alice receives: <value>20</value> </field> <field var="pubsub#persist_items" label="Persist items to storage" type="boolean"> - <value>0</value> + <value>1</value> </field> <field var="pubsub#access_model" label="Specify the subscriber model" type="list-single"> <option label="authorize"> diff --git a/util/pubsub.lua b/util/pubsub.lua index 54b3ec4a..c60da9e7 100644 --- a/util/pubsub.lua +++ b/util/pubsub.lua @@ -132,7 +132,7 @@ local default_config = { local default_config_mt = { __index = default_config }; local default_node_config = { - ["persist_items"] = false; + ["persist_items"] = true; ["max_items"] = 20; ["access_model"] = "open"; ["publish_model"] = "publishers"; |