From 15217f2466670d3e26a8a8a01a2c621483a00103 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 15 Nov 2023 09:48:57 -0300 Subject: [PATCH] fetch: fix handling of --relay tags. --- fetch.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fetch.go b/fetch.go index 43c24ed..96e267e 100644 --- a/fetch.go +++ b/fetch.go @@ -46,20 +46,20 @@ var fetch = &cli.Command{ if v.Author != "" { authorHint = v.Author } - relays = v.Relays + relays = append(relays, v.Relays...) case "naddr": v := value.(nostr.EntityPointer) filter.Tags = nostr.TagMap{"d": []string{v.Identifier}} filter.Kinds = append(filter.Kinds, v.Kind) filter.Authors = append(filter.Authors, v.PublicKey) authorHint = v.PublicKey - relays = v.Relays + relays = append(relays, v.Relays...) case "nprofile": v := value.(nostr.ProfilePointer) filter.Authors = append(filter.Authors, v.PublicKey) filter.Kinds = append(filter.Kinds, 0) authorHint = v.PublicKey - relays = v.Relays + relays = append(relays, v.Relays...) case "npub": v := value.(string) filter.Authors = append(filter.Authors, v)