mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-12 18:08:52 +00:00
fix tag in matchFilter for kinds and ids.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
export function matchFilter(filter, event) {
|
||||
if (filter.ids && filter.ids.indexOf(event.id) !== -1) return false
|
||||
if (filter.kinds && filter.kinds.indexOf(event.kind) !== -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.authors && filter.authors.indexOf(event.pubkey) === -1)
|
||||
return false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user