aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-01 03:02:44 +0200
committerKim Alvefur <zash@zash.se>2018-09-01 03:02:44 +0200
commit06d7af79c092201e65b5571ade6f19c0a9282d0d (patch)
treece1d222a721239881a0bff54d8ac60229671c154 /plugins
parent95ae8927f7f1afe63268b7ea095384df92b4fdf6 (diff)
downloadprosody-06d7af79c092201e65b5571ade6f19c0a9282d0d.tar.gz
prosody-06d7af79c092201e65b5571ade6f19c0a9282d0d.zip
mod_pubsub: Use dataforms validation to specify that max_items is an integer
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua1
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";