From c5f5adcac60e92976f0fd405b52d0ddfb123ef7d Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 28 Feb 2024 20:31:25 -0500 Subject: [PATCH] Missed some more jsonb messages.content use issues. --- apps/ssb.json | 2 +- apps/ssb/tf-app.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/ssb.json b/apps/ssb.json index 01b38ef9..e63230b7 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🐌", - "previous": "&p3OKuQTktIRVTG1IT2PCPpkfkI/36G4JSTBAi5u24IU=.sha256" + "previous": "&fro6dEqPfrkbxnrFGIO0KsRPFzi9jhWMXBgmYKTHNW0=.sha256" } diff --git a/apps/ssb/tf-app.js b/apps/ssb/tf-app.js index 5dcd39d1..9becccc3 100644 --- a/apps/ssb/tf-app.js +++ b/apps/ssb/tf-app.js @@ -107,7 +107,7 @@ class TfElement extends LitElement { let abouts = await tfrpc.rpc.query( ` SELECT - messages.* + messages.id, messages.previous, messages.author, messages.sequence, messages.timestamp, messages.hash, json(messages.content) AS content, messages.signature FROM messages, json_each(?1) AS following @@ -118,7 +118,7 @@ class TfElement extends LitElement { json_extract(messages.content, '$.type') = 'about' UNION SELECT - messages.* + messages.id, messages.previous, messages.author, messages.sequence, messages.timestamp, messages.hash, json(messages.content) AS content, messages.signature FROM messages, json_each(?2) AS following @@ -158,7 +158,7 @@ class TfElement extends LitElement { async fetch_new_message(id) { let messages = await tfrpc.rpc.query( ` - SELECT id, previous, author, sequence, timestamp, hash, json(content), signature + SELECT messages.id, previous, author, sequence, timestamp, hash, json(content), signature FROM messages JOIN json_each(?) AS following ON messages.author = following.value WHERE messages.id = ?