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:
commit
3d70edfb39
|
@ -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,
|
||||||
'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),
|
'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),
|
'p': ({ event, count, value }) => (count < 15 || event.kind === 3) && isNostrId(value),
|
||||||
'proxy': ({ count, value }) => count === 0 && isURL(value),
|
'proxy': ({ count, value }) => count === 0 && isURL(value),
|
||||||
'q': ({ event, count, value }) => count === 0 && event.kind === 1 && isNostrId(value),
|
'q': ({ event, count, value }) => count === 0 && event.kind === 1 && isNostrId(value),
|
||||||
|
|
Loading…
Reference in New Issue