From f853801461c639c0d4e661a7c66077bf4fe042b8 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 21 Feb 2024 15:51:48 -0600 Subject: [PATCH] EventsDB: index 1985 label tags --- src/storages/events-db.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/storages/events-db.ts b/src/storages/events-db.ts index 4f286d8..b5c8ee7 100644 --- a/src/storages/events-db.ts +++ b/src/storages/events-db.ts @@ -21,6 +21,8 @@ type TagCondition = ({ event, count, value }: { const tagConditions: Record = { 'd': ({ event, count }) => count === 0 && isParameterizedReplaceableKind(event.kind), 'e': ({ event, count, value }) => ((event.user && event.kind === 10003) || count < 15) && isNostrId(value), + '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': ({ event, count, value }) => (count < 15 || event.kind === 3) && isNostrId(value),