mod_bookmarks2: Use same default as mod_pep for max_items
authorKim Alvefur <zash@zash.se>
Wed, 15 Sep 2021 17:39:37 +0200
changeset 4692 05725276fac0
parent 4691 41ddb782320c
child 4693 ecfffbbcbf42
mod_bookmarks2: Use same default as mod_pep for max_items Should fix the issue with max items until the proper "max" can be used, by following the configured max. While "max" is already in trunk, it's not easily usable in 0.11.x This limit and option was added to mod_pep in Prosody rev aefb96a52f5f
mod_bookmarks2/mod_bookmarks2.lua
--- a/mod_bookmarks2/mod_bookmarks2.lua	Mon Sep 13 21:10:50 2021 +0100
+++ b/mod_bookmarks2/mod_bookmarks2.lua	Wed Sep 15 17:39:37 2021 +0200
@@ -14,7 +14,7 @@
 local default_options = {
 	["persist_items"] = true;
 	-- This should be much higher, the XEP recommends 10000 but mod_pep rejects that.
-	["max_items"] = 255;
+	["max_items"] = module:get_option_number("pep_max_items", 256);
 	["send_last_published_item"] = "never";
 	["access_model"] = "whitelist";
 };