mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
fix tag in matchFilter for kinds and ids.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
export function matchFilter(filter, event) {
|
export function matchFilter(filter, event) {
|
||||||
if (filter.ids && filter.ids.indexOf(event.id) !== -1) return false
|
if (filter.ids && filter.ids.indexOf(event.id) === -1) return false
|
||||||
if (filter.kinds && filter.kinds.indexOf(event.kind) !== -1) return false
|
if (filter.kinds && filter.kinds.indexOf(event.kind) === -1) return false
|
||||||
if (filter.authors && filter.authors.indexOf(event.pubkey) === -1)
|
if (filter.authors && filter.authors.indexOf(event.pubkey) === -1)
|
||||||
return false
|
return false
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nostr-tools",
|
"name": "nostr-tools",
|
||||||
"version": "0.16.0",
|
"version": "0.16.1",
|
||||||
"description": "Tools for making a Nostr client.",
|
"description": "Tools for making a Nostr client.",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user