From 88da071ed6d6a7cef02f60ffe3aa4418525fc8dc Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 8 Dec 2024 09:40:02 -0500 Subject: [PATCH] ssb: We can load more messages by author, now. --- apps/ssb.json | 2 +- apps/ssb/tf-tab-news-feed.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/ssb.json b/apps/ssb.json index 07a4dc8b8..f27e62916 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🐌", - "previous": "&/JTE4AwvZ1kkbPJne84iMDwbvxsJHJxvX8n+GSlqRPc=.sha256" + "previous": "&UuIvaWISWWRqgpN5ccS32C71334ofLV+qMcaDDqUn28=.sha256" } diff --git a/apps/ssb/tf-tab-news-feed.js b/apps/ssb/tf-tab-news-feed.js index d84a726e2..b8b9a5a77 100644 --- a/apps/ssb/tf-tab-news-feed.js +++ b/apps/ssb/tf-tab-news-feed.js @@ -77,6 +77,9 @@ class TfTabNewsFeedElement extends LitElement { FROM mine JOIN messages_refs ON mine.id = messages_refs.ref JOIN messages ON messages_refs.message = messages.id + WHERE + mine.timestamp >= ?2 AND + mine.timestamp < ?3 UNION SELECT * FROM mine WHERE @@ -345,10 +348,7 @@ class TfTabNewsFeedElement extends LitElement { this.load_messages(); } let more; - if ( - this.hash == '#@' || - (!this.hash.startsWith('#@') && !this.hash.startsWith('#%')) - ) { + if (!this.hash.startsWith('#%')) { more = html`