changeset 2846:7eb23a4e7fde

mod_http_muc_log: Generate empty pages in lazy mode, so that one can navigate past quiet days
author Kim Alvefur <zash@zash.se>
date Tue, 21 Nov 2017 10:30:35 +0100
parents 0de6ed2ae9bd
children 907a15c9d621
files mod_http_muc_log/mod_http_muc_log.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_muc_log/mod_http_muc_log.lua	Tue Nov 21 00:48:05 2017 +0100
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Tue Nov 21 10:30:35 2017 +0100
@@ -230,7 +230,7 @@
 		first = first or key;
 		last = key;
 	end
-	if i == 1 then return end -- No items
+	if i == 1 and not lazy then return end -- No items
 
 	local next_when, prev_when = "", "";
 	local date_list = archive.dates and archive:dates(room);