diff --git a/apps/ssb.json b/apps/ssb.json index da4640e0..9b307bf7 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🦀", - "previous": "&Ph3a53rRidBNfYsfAtQKydoizUBCyh1Xl4I8XlzcQnk=.sha256" + "previous": "&m5ZrkzoyAjv7AY6AukzVoWIyUFUL97uuDDWCtxCloAU=.sha256" } diff --git a/apps/ssb/tf-tab-news-feed.js b/apps/ssb/tf-tab-news-feed.js index 495bc5f7..da589fca 100644 --- a/apps/ssb/tf-tab-news-feed.js +++ b/apps/ssb/tf-tab-news-feed.js @@ -147,12 +147,12 @@ class TfTabNewsFeedElement extends LitElement { result = await tfrpc.rpc.query( ` SELECT TRUE AS is_primary, messages.rowid, messages.id, previous, author, sequence, timestamp, hash, json(content) AS content, signature - FROM messages - JOIN json_each(?1) AS following ON messages.author = following.value - WHERE - (?2 IS NULL OR (messages.timestamp >= ?2) AND messages.timestamp < ?3 AND - json(messages.content) LIKE '"%' - ORDER BY sequence DESC LIMIT 20 + FROM messages + JOIN json_each(?1) AS following ON messages.author = following.value + WHERE + (?2 IS NULL OR (messages.timestamp >= ?2)) AND messages.timestamp < ?3 AND + json(messages.content) LIKE '"%' + ORDER BY messages.sequence DESC LIMIT 20 `, [JSON.stringify(this.following), start_time, end_time] );