getIdsBySearch: fix joining txt tokens

This commit is contained in:
Alex Gleason 2025-02-02 21:39:49 -06:00
parent 0d718e28b4
commit ffe49b3648
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -54,7 +54,7 @@ export async function getIdsBySearch(
const tokens = NIP50.parseInput(q); const tokens = NIP50.parseInput(q);
const ext = tokens.filter((token) => typeof token === 'object'); const ext = tokens.filter((token) => typeof token === 'object');
const txt = tokens.filter((token) => typeof token === 'string').join(''); const txt = tokens.filter((token) => typeof token === 'string').join(' ');
let query = kysely let query = kysely
.selectFrom('nostr_events') .selectFrom('nostr_events')