diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-01 03:02:44 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-01 03:02:44 +0200 |
commit | 06d7af79c092201e65b5571ade6f19c0a9282d0d (patch) | |
tree | ce1d222a721239881a0bff54d8ac60229671c154 /plugins/mod_pubsub/pubsub.lib.lua | |
parent | 95ae8927f7f1afe63268b7ea095384df92b4fdf6 (diff) | |
download | prosody-06d7af79c092201e65b5571ade6f19c0a9282d0d.tar.gz prosody-06d7af79c092201e65b5571ade6f19c0a9282d0d.zip |
mod_pubsub: Use dataforms validation to specify that max_items is an integer
Diffstat (limited to 'plugins/mod_pubsub/pubsub.lib.lua')
-rw-r--r-- | plugins/mod_pubsub/pubsub.lib.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua index 68939b69..83ef2f06 100644 --- a/plugins/mod_pubsub/pubsub.lib.lua +++ b/plugins/mod_pubsub/pubsub.lib.lua @@ -71,6 +71,7 @@ local node_config_form = dataform { }; { type = "text-single"; + datatype = "xs:integer"; name = "max_items"; var = "pubsub#max_items"; label = "Max # of items to persist"; |