fix filter matching for tags.

This commit is contained in:
fiatjaf
2022-01-02 19:46:17 -03:00
parent bb09e25512
commit 89f11e214d
2 changed files with 4 additions and 2 deletions

View File

@@ -8,7 +8,9 @@ export function matchFilter(filter, event) {
if (f[0] === '#') {
if (
filter[f] &&
!event.tags.find(([t, v]) => t === f.slice(1) && v === filter[f])
!event.tags.find(
([t, v]) => t === f.slice(1) && filter[f].indexOf(v) !== -1
)
)
return false
}

View File

@@ -1,6 +1,6 @@
{
"name": "nostr-tools",
"version": "0.16.1",
"version": "0.16.2",
"description": "Tools for making a Nostr client.",
"repository": {
"type": "git",