mod_pep_plus: Default to max one item per node (Recomended for PEP)
authorKim Alvefur <zash@zash.se>
Sun, 28 Sep 2014 02:00:44 +0200
changeset 6447 aab509a9d0ba
parent 6446 f4403c270ea2
child 6452 24cd03cd1847
mod_pep_plus: Default to max one item per node (Recomended for PEP)
plugins/mod_pep_plus.lua
--- 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";