Changeset

6444:aab509a9d0ba

mod_pep_plus: Default to max one item per node (Recomended for PEP)
author Kim Alvefur <zash@zash.se>
date Sun, 28 Sep 2014 02:00:44 +0200
parents 6443:f4403c270ea2
children 6449:24cd03cd1847
files plugins/mod_pep_plus.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_pep_plus.lua	Sun Sep 28 02:00:09 2014 +0200
+++ b/plugins/mod_pep_plus.lua	Sun Sep 28 02:00:44 2014 +0200
@@ -154,6 +154,10 @@
 			};
 		};
 
+		node_defaults = {
+			["pubsub#max_items"] = "1";
+		};
+
 		node_config_form = require"util.dataforms".new {
 			{
 				type = "hidden";