EventsDB: always index the first P-tag of events
This commit is contained in:
parent
a7cbd452e7
commit
b016f931ff
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue