Fix &-mentions while I'm at it.

This commit is contained in:
Cory McWilliams 2024-06-06 20:14:00 -04:00
parent 0076eb4ed4
commit c7d3e602cb
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{
"type": "tildefriends-app",
"emoji": "🐌",
"previous": "&Tqgx33F75cRAv5Cb0HsRPmc+HabRA8qnTjgMPr1PJ9Q=.sha256"
"previous": "&z0N6jlqflRd4+grj16K/IdllNVLQrPLbr7aKVs/21mE=.sha256"
}

View File

@ -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}%](%)%`]