Diff

mod_http_muc_log/mod_http_muc_log.lua @ 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
parent 2845:0de6ed2ae9bd
child 3057:f69a2e97d912
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);