Merge branch 'P-index' into 'main'

EventsDB: always index the first P-tag of events

See merge request soapbox-pub/ditto!209
This commit is contained in:
Alex Gleason 2024-05-02 14:57:34 +00:00
commit 3d70edfb39
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ const tagConditions: Record<string, TagCondition> = {
'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),