From b016f931ff52ca0fa31c974c4e8a5209d34642a5 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 2 May 2024 09:54:24 -0500 Subject: [PATCH] EventsDB: always index the first P-tag of events --- src/storages/events-db.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storages/events-db.ts b/src/storages/events-db.ts index ba34b3c..2fcdf16 100644 --- a/src/storages/events-db.ts +++ b/src/storages/events-db.ts @@ -25,7 +25,7 @@ const tagConditions: Record = { 'L': ({ event, count }) => event.kind === 1985 || count === 0, 'l': ({ event, count }) => event.kind === 1985 || count === 0, 'media': ({ event, count, value }) => (event.user || count < 4) && isURL(value), - 'P': ({ event, count, value }) => event.kind === 9735 && count === 0 && isNostrId(value), + 'P': ({ count, value }) => count === 0 && isNostrId(value), 'p': ({ event, count, value }) => (count < 15 || event.kind === 3) && isNostrId(value), 'proxy': ({ count, value }) => count === 0 && isURL(value), 'q': ({ event, count, value }) => count === 0 && event.kind === 1 && isNostrId(value),