From b111d0685134c1401b53473c73c016ecc3e0ebea Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 2 Feb 2025 10:14:05 -0500 Subject: [PATCH] ssb: I think this fixes missing a range in some circumstances. --- apps/ssb.json | 2 +- apps/ssb/tf-tab-news-feed.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ssb.json b/apps/ssb.json index 9b307bf7..b4a19ae9 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🦀", - "previous": "&m5ZrkzoyAjv7AY6AukzVoWIyUFUL97uuDDWCtxCloAU=.sha256" + "previous": "&zAW/4XKD1wcsEM12bkzZD0V7Wyne3OPpQne2rtncxXM=.sha256" } diff --git a/apps/ssb/tf-tab-news-feed.js b/apps/ssb/tf-tab-news-feed.js index da589fca..06ad9622 100644 --- a/apps/ssb/tf-tab-news-feed.js +++ b/apps/ssb/tf-tab-news-feed.js @@ -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])