EventsDB: don't index the user's bio for kind 0 events

This commit is contained in:
Alex Gleason 2024-05-20 11:39:31 -05:00
parent 281f0f9625
commit 7b099ee565
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 2 deletions

View File

@ -180,8 +180,8 @@ class EventsDB implements NStore {
/** Build search content for a user. */ /** Build search content for a user. */
static buildUserSearchContent(event: NostrEvent): string { static buildUserSearchContent(event: NostrEvent): string {
const { name, nip05, about } = n.json().pipe(n.metadata()).catch({}).parse(event.content); const { name, nip05 } = n.json().pipe(n.metadata()).catch({}).parse(event.content);
return [name, nip05, about].filter(Boolean).join('\n'); return [name, nip05].filter(Boolean).join('\n');
} }
/** Build search content from tag values. */ /** Build search content from tag values. */