mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
fix: index k tag even if the value is not a number and count is less than 3
This commit is contained in:
parent
d67c380f4c
commit
44c7eb72a3
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ export class DittoPgStore extends NPostgres {
|
||||||
'a': ({ count }) => count < 15,
|
'a': ({ count }) => count < 15,
|
||||||
'd': ({ event, count }) => count === 0 && NKinds.parameterizedReplaceable(event.kind),
|
'd': ({ event, count }) => count === 0 && NKinds.parameterizedReplaceable(event.kind),
|
||||||
'e': DittoPgStore.eTagCondition,
|
'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,
|
||||||
'l': ({ event, count }) => event.kind === 1985 || count === 0,
|
'l': ({ event, count }) => event.kind === 1985 || count === 0,
|
||||||
'n': ({ count, value }) => count < 50 && value.length < 50,
|
'n': ({ count, value }) => count < 50 && value.length < 50,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue