Merge branch 'fix-index-k-tag' into 'main'

fix: index k tag even if the value is not a number and count is less than 3

See merge request soapbox-pub/ditto!727
This commit is contained in:
Alex Gleason 2025-03-21 20:59:27 +00:00
commit 1ff83212c4

View file

@ -85,7 +85,7 @@ export class DittoPgStore extends NPostgres {
'a': ({ count }) => count < 15,
'd': ({ event, count }) => count === 0 && NKinds.parameterizedReplaceable(event.kind),
'e': DittoPgStore.eTagCondition,
'k': ({ count, value }) => count === 0 && Number.isInteger(Number(value)),
'k': ({ count }) => count < 3,
'L': ({ event, count }) => event.kind === 1985 || count === 0,
'l': ({ event, count }) => event.kind === 1985 || count === 0,
'n': ({ count, value }) => count < 50 && value.length < 50,