fix .kind filter validator.

This commit is contained in:
fiatjaf
2022-01-01 10:26:55 -03:00
parent 76624a0f23
commit b271d6c06b
5 changed files with 7 additions and 6 deletions

View File

@@ -1,7 +1,6 @@
export function matchFilter(filter, event) {
if (filter.id && event.id !== filter.id) return false
if (filter.kind && event.kind !== filter.kind) return false
if (filter.author && event.pubkey !== filter.author) return false
if (typeof filter.kind === 'number' && event.kind !== filter.kind) return false
if (filter.authors && filter.authors.indexOf(event.pubkey) === -1)
return false
if (