Merge branch 'unindex-bio' into 'main'
EventsDB: don't index the user's bio for kind 0 events See merge request soapbox-pub/ditto!284
This commit is contained in:
commit
78b9c62af3
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue