Software /
code /
prosody-modules
Changeset
4688:05725276fac0
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
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 15 Sep 2021 17:39:37 +0200 |
parents | 4687:41ddb782320c |
children | 4689:ecfffbbcbf42 |
files | mod_bookmarks2/mod_bookmarks2.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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"; };