Mercurial > prosody-hg
comparison plugins/mod_pubsub/pubsub.lib.lua @ 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 |
| parents | b605cbd5f13b |
| children | c3bd71227e17 |
comparison
equal
deleted
inserted
replaced
| 11854:b605cbd5f13b | 11855:8890eaa69446 |
|---|---|
| 84 }; | 84 }; |
| 85 { | 85 { |
| 86 type = "text-single"; | 86 type = "text-single"; |
| 87 datatype = "pubsub:integer-or-max"; | 87 datatype = "pubsub:integer-or-max"; |
| 88 name = "max_items"; | 88 name = "max_items"; |
| 89 range_min = 1; | |
| 89 var = "pubsub#max_items"; | 90 var = "pubsub#max_items"; |
| 90 label = "Max # of items to persist"; | 91 label = "Max # of items to persist"; |
| 91 }; | 92 }; |
| 92 { | 93 { |
| 93 type = "boolean"; | 94 type = "boolean"; |
