From 7b099ee5659f278dfe49802e79c9e878ae4d69a1 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 20 May 2024 11:39:31 -0500 Subject: [PATCH] EventsDB: don't index the user's bio for kind 0 events --- src/storages/EventsDB.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storages/EventsDB.ts b/src/storages/EventsDB.ts index ef51a89..5a3839a 100644 --- a/src/storages/EventsDB.ts +++ b/src/storages/EventsDB.ts @@ -180,8 +180,8 @@ class EventsDB implements NStore { /** Build search content for a user. */ static buildUserSearchContent(event: NostrEvent): string { - const { name, nip05, about } = n.json().pipe(n.metadata()).catch({}).parse(event.content); - return [name, nip05, about].filter(Boolean).join('\n'); + const { name, nip05 } = n.json().pipe(n.metadata()).catch({}).parse(event.content); + return [name, nip05].filter(Boolean).join('\n'); } /** Build search content from tag values. */