diff options
author | Kim Alvefur <zash@zash.se> | 2021-10-20 17:32:34 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-10-20 17:32:34 +0200 |
commit | 5016e666403899202ad8b5775761325ee98cf3b8 (patch) | |
tree | 3501ad5624c12e623e68f47c824b366655cbf3bd /spec/scansion/pubsub_multi_items.scs | |
parent | 8b769c373d076ea0a678680ef187f83cd0e7d19d (diff) | |
download | prosody-5016e666403899202ad8b5775761325ee98cf3b8.tar.gz prosody-5016e666403899202ad8b5775761325ee98cf3b8.zip |
mod_pubsub,mod_pep: Advertise maximum number of items via XEP-0122
Clients would generally be using the "max" symbol instead of discovering
this, but this also gets us validation and earlier rejection of out of
bounds values.
Diffstat (limited to 'spec/scansion/pubsub_multi_items.scs')
-rw-r--r-- | spec/scansion/pubsub_multi_items.scs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/scansion/pubsub_multi_items.scs b/spec/scansion/pubsub_multi_items.scs index d8a9536a..e43bc839 100644 --- a/spec/scansion/pubsub_multi_items.scs +++ b/spec/scansion/pubsub_multi_items.scs @@ -44,7 +44,7 @@ Alice receives: <field var="pubsub#type" label="The type of node data, usually specified by the namespace of the payload (if any)" type="text-single"/> <field var="pubsub#max_items" label="Max # of items to persist" type="text-single"> <validate xmlns="http://jabber.org/protocol/xdata-validate" datatype="pubsub:integer-or-max"> - <range min="1"/> + <range min="1" max="256"/> </validate> <value>20</value> </field> |