ssb: I think this fixes missing a range in some circumstances.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 25m8s

This commit is contained in:
Cory McWilliams 2025-02-02 10:14:05 -05:00
parent 79388845ea
commit b111d06851
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{
"type": "tildefriends-app",
"emoji": "🦀",
"previous": "&m5ZrkzoyAjv7AY6AukzVoWIyUFUL97uuDDWCtxCloAU=.sha256"
"previous": "&zAW/4XKD1wcsEM12bkzZD0V7Wyne3OPpQne2rtncxXM=.sha256"
}

View File

@ -298,7 +298,7 @@ class TfTabNewsFeedElement extends LitElement {
let now = new Date().valueOf();
let start_time = now - 24 * 60 * 60 * 1000;
this.start_time = start_time;
this.time_range = [this.start_time, now + 24 * 60 * 60 * 1000];
this.time_range = [now + 24 * 60 * 60 * 1000, now + 24 * 60 * 60 * 1000];
messages = await this.fetch_messages(null, this.time_range[1]);
this.update_time_range_from_messages(
messages.filter((x) => x.timestamp < this.time_range[1])