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 | a6d4c6c8f63f945cacf47521a1e2b9cb020c88a3 (patch) | |
tree | ce1d222a721239881a0bff54d8ac60229671c154 /plugins/mod_pubsub/pubsub.lib.lua | |
parent | 5c0b58cddfd136954fe157ee9b3f09df96218dde (diff) | |
download | prosody-a6d4c6c8f63f945cacf47521a1e2b9cb020c88a3.tar.gz prosody-a6d4c6c8f63f945cacf47521a1e2b9cb020c88a3.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"; |