Comparison

spec/scansion/pubsub_multi_items.scs @ 11855:8890eaa69446

mod_pubsub: Prevent max_items from being set to zero Disable persistence instead if no items should be persisted. XEP-0060 is not entirely clear on what either of those option really mean.
author Kim Alvefur <zash@zash.se>
date Wed, 20 Oct 2021 17:31:24 +0200
parent 11854:b605cbd5f13b
child 11856:14a679588b7b
comparison
equal deleted inserted replaced
11854:b605cbd5f13b 11855:8890eaa69446
41 </field> 41 </field>
42 <field var="pubsub#title" label="Title" type="text-single"/> 42 <field var="pubsub#title" label="Title" type="text-single"/>
43 <field var="pubsub#description" label="Description" type="text-single"/> 43 <field var="pubsub#description" label="Description" type="text-single"/>
44 <field var="pubsub#type" label="The type of node data, usually specified by the namespace of the payload (if any)" type="text-single"/> 44 <field var="pubsub#type" label="The type of node data, usually specified by the namespace of the payload (if any)" type="text-single"/>
45 <field var="pubsub#max_items" label="Max # of items to persist" type="text-single"> 45 <field var="pubsub#max_items" label="Max # of items to persist" type="text-single">
46 <validate xmlns="http://jabber.org/protocol/xdata-validate" datatype="pubsub:integer-or-max"/> 46 <validate xmlns="http://jabber.org/protocol/xdata-validate" datatype="pubsub:integer-or-max">
47 <range min="1"/>
48 </validate>
47 <value>20</value> 49 <value>20</value>
48 </field> 50 </field>
49 <field var="pubsub#persist_items" label="Persist items to storage" type="boolean"> 51 <field var="pubsub#persist_items" label="Persist items to storage" type="boolean">
50 <value>1</value> 52 <value>1</value>
51 </field> 53 </field>