# HG changeset patch # User Kim Alvefur # Date 1631720377 -7200 # Node ID 05725276fac062caa8c82fc3c2fe6a07cb7d6669 # Parent 41ddb782320c490b5311ce942a1846dfe778aa2f 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 diff -r 41ddb782320c -r 05725276fac0 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"; };