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
commita6d4c6c8f63f945cacf47521a1e2b9cb020c88a3 (patch)
treece1d222a721239881a0bff54d8ac60229671c154 /plugins
parent5c0b58cddfd136954fe157ee9b3f09df96218dde (diff)
downloadprosody-a6d4c6c8f63f945cacf47521a1e2b9cb020c88a3.tar.gz
prosody-a6d4c6c8f63f945cacf47521a1e2b9cb020c88a3.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";