From 5af0e0992f36c960950f14b192e35dea11137c87 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 1 Jan 2024 14:21:05 -0600 Subject: [PATCH] db/events: ensure local bookmarks get indexed --- src/db/events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/events.ts b/src/db/events.ts index 79f670f..7764a8d 100644 --- a/src/db/events.ts +++ b/src/db/events.ts @@ -20,7 +20,7 @@ type TagCondition = ({ event, count, value }: { /** Conditions for when to index certain tags. */ const tagConditions: Record = { 'd': ({ event, count }) => count === 0 && isParameterizedReplaceableKind(event.kind), - 'e': ({ count, value }) => count < 15 && isNostrId(value), + 'e': ({ event, count, value, opts }) => ((opts.data?.user && event.kind === 10003) || count < 15) && isNostrId(value), 'media': ({ count, value, opts }) => (opts.data?.user || count < 4) && isURL(value), 'p': ({ event, count, value }) => (count < 15 || event.kind === 3) && isNostrId(value), 'proxy': ({ count, value }) => count === 0 && isURL(value),