mod_pep_plus: Default to max one item per node (Recomended for PEP)
authorKim Alvefur <zash@zash.se>
Sun, 28 Sep 2014 00:00:44 +0000 (02:00 +0200)
committerKim Alvefur <zash@zash.se>
Sun, 28 Sep 2014 00:00:44 +0000 (02:00 +0200)
plugins/mod_pep_plus.lua

index de0f92b218a2f75eeff90ef06cb8301d317592c1..a281f49edcd3aeca53cbde245cccbf66c62e6cf1 100644 (file)
@@ -154,6 +154,10 @@ function get_pep_service(name)
                        };
                };
 
+               node_defaults = {
+                       ["pubsub#max_items"] = "1";
+               };
+
                node_config_form = require"util.dataforms".new {
                        {
                                type = "hidden";