Software /
code /
prosody-modules
Comparison
mod_http_muc_log/mod_http_muc_log.lua @ 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 |
parent | 2843:53a76c994fc3 |
child | 2845:0de6ed2ae9bd |
comparison
equal
deleted
inserted
replaced
2843:53a76c994fc3 | 2844:9fac07bba402 |
---|---|
240 next_when = date_list[j+1] or ""; | 240 next_when = date_list[j+1] or ""; |
241 prev_when = date_list[j-1] or ""; | 241 prev_when = date_list[j-1] or ""; |
242 break; | 242 break; |
243 end | 243 end |
244 end | 244 end |
245 elseif lazy then | |
246 next_when = datetime.date(day_start + 86400); | |
247 prev_when = datetime.date(day_start - 86400); | |
245 else | 248 else |
246 | 249 |
247 module:log("debug", "Find next date with messages"); | 250 module:log("debug", "Find next date with messages"); |
248 next_when = find_once(room, { after = last }, 3); | 251 next_when = find_once(room, { after = last }, 3); |
249 if next_when then | 252 if next_when then |