From ff8701a3b001580ddebfa74b88ec9b07431cb2ac Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 3 Feb 2025 15:54:12 -0300 Subject: [PATCH] fetch: stop adding kind:0 to all requests when they already have a kind specified. --- fetch.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fetch.go b/fetch.go index ea84418..5972415 100644 --- a/fetch.go +++ b/fetch.go @@ -100,14 +100,14 @@ var fetch = &cli.Command{ } } - if len(filter.Authors) > 0 && len(filter.Kinds) == 0 { - filter.Kinds = append(filter.Kinds, 0) - } - if err := applyFlagsToFilter(c, &filter); err != nil { return err } + if len(filter.Authors) > 0 && len(filter.Kinds) == 0 { + filter.Kinds = append(filter.Kinds, 0) + } + if len(relays) == 0 { ctx = lineProcessingError(ctx, "no relay hints found") continue