From 859fe1feb0c8780e2d8ec61acaae0dd5832730bf Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 1 Oct 2025 20:02:37 -0400 Subject: [PATCH] ssb: Exclude followed mentions from the general channel, too. --- apps/ssb.json | 2 +- apps/ssb/tf-tab-news-feed.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/ssb.json b/apps/ssb.json index 67a10227..463a8fd2 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🦀", - "previous": "&DnBJGdNczyRZF6IF6K4PnwcuO+8nJ+n5942vY4A5AAM=.sha256" + "previous": "&StSBHQtJozeH0jKPMzui4/O73oTtDgzd2fYNNxEjDLM=.sha256" } diff --git a/apps/ssb/tf-tab-news-feed.js b/apps/ssb/tf-tab-news-feed.js index 69acb599..625d3bc5 100644 --- a/apps/ssb/tf-tab-news-feed.js +++ b/apps/ssb/tf-tab-news-feed.js @@ -261,7 +261,8 @@ class TfTabNewsFeedElement extends LitElement { JOIN json_each(?1) AS following ON messages.author = following.value LEFT OUTER JOIN json_each(?5) AS channels ON messages.content ->> 'channel' = channels.value WHERE messages.timestamp < ?3 AND (?2 IS NULL OR messages.timestamp >= ?2) AND - messages.content ->> 'type' != 'vote' AND channels.value IS NULL + messages.content ->> 'type' != 'vote' AND channels.value IS NULL AND + NOT EXISTS (SELECT * FROM messages_refs JOIN json_each(?5) AS channels ON messages_refs.ref = '#' || channels.value WHERE messages_refs.message = messages.id) ORDER BY timestamp DESC LIMIT ?4 `, [