From f59afbd5b76a195bc46a413dd0da1fed561beb9b Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 6 Aug 2024 10:53:55 -0300 Subject: [PATCH] problem: we were not filtering by author upon receiving a naddr. fixes https://github.com/fiatjaf/njump/issues/64 --- nostr.go | 1 + 1 file changed, 1 insertion(+) diff --git a/nostr.go b/nostr.go index dd2e814..1f20ffa 100644 --- a/nostr.go +++ b/nostr.go @@ -89,6 +89,7 @@ func getEvent(ctx context.Context, code string) (*nostr.Event, []string, error) } case nostr.EntityPointer: author = v.PublicKey + filter.Authors = []string{v.PublicKey} filter.Tags = nostr.TagMap{ "d": []string{v.Identifier}, }