diff --git a/apps/ssb.json b/apps/ssb.json index 821d426c..89913b0c 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🦀", - "previous": "&qe6da4WrU2hQ3nDaZk87SAccuUpGNP5rPCh5P5bRmxk=.sha256" + "previous": "&ylIHNCaX9UzGb13pGbe7vqDlypSEuoxIxWzYLELHXXg=.sha256" } diff --git a/apps/ssb/tf-tab-news-feed.js b/apps/ssb/tf-tab-news-feed.js index f4da7117..1dbaa204 100644 --- a/apps/ssb/tf-tab-news-feed.js +++ b/apps/ssb/tf-tab-news-feed.js @@ -86,8 +86,8 @@ class TfTabNewsFeedElement extends LitElement { 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 + messages.timestamp >= ?2 AND + messages.timestamp < ?3 UNION SELECT * FROM mine WHERE @@ -101,7 +101,7 @@ class TfTabNewsFeedElement extends LitElement { ` SELECT id, previous, author, sequence, timestamp, hash, json(content) AS content, signature FROM messages - WHERE id = ?1 + WHERE messages.id = ?1 UNION SELECT id, previous, author, sequence, timestamp, hash, json(content) AS content, signature FROM messages JOIN messages_refs