aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-09-28 02:00:09 +0200
committerKim Alvefur <zash@zash.se>2014-09-28 02:00:09 +0200
commitd3ee2e679e549908c57b75b1bf6d5744755f669c (patch)
treefd216f000bb61383dcbf91cd287f08905a1301ee
parentdfd54e1aed80944b32680f9195bb1494a3469531 (diff)
downloadprosody-d3ee2e679e549908c57b75b1bf6d5744755f669c.tar.gz
prosody-d3ee2e679e549908c57b75b1bf6d5744755f669c.zip
mod_pep_plus: Add node config form
-rw-r--r--plugins/mod_pep_plus.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/mod_pep_plus.lua b/plugins/mod_pep_plus.lua
index 351b0e3c..de0f92b2 100644
--- a/plugins/mod_pep_plus.lua
+++ b/plugins/mod_pep_plus.lua
@@ -133,6 +133,7 @@ function get_pep_service(name)
retract = true;
delete = true;
get_nodes = true;
+ configure = true;
subscribe = true;
unsubscribe = true;
@@ -153,6 +154,19 @@ function get_pep_service(name)
};
};
+ node_config_form = require"util.dataforms".new {
+ {
+ type = "hidden";
+ name = "FORM_TYPE";
+ value = "http://jabber.org/protocol/pubsub#node_config";
+ };
+ {
+ type = "text-single";
+ name = "pubsub#max_items";
+ label = "Max # of items to persist";
+ };
+ };
+
autocreate_on_publish = true;
autocreate_on_subscribe = true;