aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pep_plus.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-09-28 02:00:44 +0200
committerKim Alvefur <zash@zash.se>2014-09-28 02:00:44 +0200
commitc36bde729167d6aed130866f72b89ad3d00a558a (patch)
tree202d8b20021f294839d2a0f1f803301064a273f6 /plugins/mod_pep_plus.lua
parenta578c75039fb478ec21e170d8731f04cd8a563aa (diff)
downloadprosody-c36bde729167d6aed130866f72b89ad3d00a558a.tar.gz
prosody-c36bde729167d6aed130866f72b89ad3d00a558a.zip
mod_pep_plus: Default to max one item per node (Recomended for PEP)
Diffstat (limited to 'plugins/mod_pep_plus.lua')
-rw-r--r--plugins/mod_pep_plus.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_pep_plus.lua b/plugins/mod_pep_plus.lua
index de0f92b2..a281f49e 100644
--- a/plugins/mod_pep_plus.lua
+++ b/plugins/mod_pep_plus.lua
@@ -154,6 +154,10 @@ function get_pep_service(name)
};
};
+ node_defaults = {
+ ["pubsub#max_items"] = "1";
+ };
+
node_config_form = require"util.dataforms".new {
{
type = "hidden";