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 | 7a530c33312ed46ecc644b59d1d95771778e865d (patch) | |
tree | 06f0dc51592a49570f0f7e7b5ffeb526ab87a762 | |
parent | 0ca1504e33680e206fcb0940e4340ecea0d8a426 (diff) | |
download | prosody-7a530c33312ed46ecc644b59d1d95771778e865d.tar.gz prosody-7a530c33312ed46ecc644b59d1d95771778e865d.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 |