From c7d3e602cb9767fa276164eac676124906049eb0 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Thu, 6 Jun 2024 20:14:00 -0400 Subject: [PATCH] Fix &-mentions while I'm at it. --- apps/ssb.json | 2 +- apps/ssb/tf-compose.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/ssb.json b/apps/ssb.json index 4f26e3d9..f7e8024c 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🐌", - "previous": "&Tqgx33F75cRAv5Cb0HsRPmc+HabRA8qnTjgMPr1PJ9Q=.sha256" + "previous": "&z0N6jlqflRd4+grj16K/IdllNVLQrPLbr7aKVs/21mE=.sha256" } diff --git a/apps/ssb/tf-compose.js b/apps/ssb/tf-compose.js index 59c72a45..bda9dc84 100644 --- a/apps/ssb/tf-compose.js +++ b/apps/ssb/tf-compose.js @@ -253,9 +253,9 @@ class TfComposeElement extends LitElement { try { let rows = await tfrpc.rpc.query( ` - SELECT json(messages.content) FROM messages_fts(?) + SELECT json(messages.content) AS content FROM messages_fts(?) JOIN messages ON messages.rowid = messages_fts.rowid - WHERE messages.content LIKE ? + WHERE json(messages.content) LIKE ? ORDER BY timestamp DESC LIMIT 10 `, ['"' + text.replace('"', '""') + '"', `%![%${text}%](%)%`]