diff options
author | Kim Alvefur <zash@zash.se> | 2018-03-07 15:05:20 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-03-07 15:05:20 +0100 |
commit | afcc3470e601b32c41f775b6a73e4c4351af4c8c (patch) | |
tree | 06f0dc51592a49570f0f7e7b5ffeb526ab87a762 | |
parent | af154ecb6a2a379d2b6d4503f8d7a9a4f20e3621 (diff) | |
download | prosody-afcc3470e601b32c41f775b6a73e4c4351af4c8c.tar.gz prosody-afcc3470e601b32c41f775b6a73e4c4351af4c8c.zip |
mod_mam: Add an option for whether to include 'total' counts by default in queries
-rw-r--r-- | plugins/mod_mam/mod_mam.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index a8b3aad2..781a9e62 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -52,7 +52,7 @@ if archive.name == "null" or not archive.find then archive = module:require "fallback_archive"; end -local use_total = true; +local use_total = module:get_option_boolean("mam_include_total", true); local cleanup; @@ -384,7 +384,7 @@ else module:log("debug", "Archive expiry disabled"); -- Don't ask the backend to count the potentially unbounded number of items, -- it'll get slow. - use_total = false; + use_total = module:get_option_boolean("mam_include_total", false); end -- Stanzas sent by local clients |