Changeset

2844:9fac07bba402

mod_http_muc_log: Lazy nex/prev link generation
author Kim Alvefur <zash@zash.se>
date Tue, 21 Nov 2017 00:46:00 +0100
parents 2843:53a76c994fc3
children 2845:0de6ed2ae9bd
files mod_http_muc_log/mod_http_muc_log.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_muc_log/mod_http_muc_log.lua	Tue Nov 21 00:45:23 2017 +0100
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Tue Nov 21 00:46:00 2017 +0100
@@ -242,6 +242,9 @@
 				break;
 			end
 		end
+	elseif lazy then
+		next_when = datetime.date(day_start + 86400);
+		prev_when = datetime.date(day_start - 86400);
 	else
 
 		module:log("debug", "Find next date with messages");