ssb: Exclude followed mentions from the general channel, too.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 33m18s

This commit is contained in:
2025-10-01 20:02:37 -04:00
parent 8f61d83f41
commit 859fe1feb0
2 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
{ {
"type": "tildefriends-app", "type": "tildefriends-app",
"emoji": "🦀", "emoji": "🦀",
"previous": "&DnBJGdNczyRZF6IF6K4PnwcuO+8nJ+n5942vY4A5AAM=.sha256" "previous": "&StSBHQtJozeH0jKPMzui4/O73oTtDgzd2fYNNxEjDLM=.sha256"
} }

View File

@@ -261,7 +261,8 @@ class TfTabNewsFeedElement extends LitElement {
JOIN json_each(?1) AS following ON messages.author = following.value 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 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 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 ORDER BY timestamp DESC LIMIT ?4
`, `,
[ [