From 0240866fa1c118e39d1a837296dd10374feb5ee2 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 20 Aug 2024 18:39:17 -0300 Subject: [PATCH] fix fetch for non-pubkey cases. --- fetch.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fetch.go b/fetch.go index d06723d..dbb0938 100644 --- a/fetch.go +++ b/fetch.go @@ -91,10 +91,10 @@ var fetch = &cli.Command{ for _, url := range relays { relays = append(relays, url) } + } - if len(filter.Kinds) == 0 { - filter.Kinds = append(filter.Kinds, 0) - } + if len(filter.Authors) > 0 && len(filter.Kinds) == 0 { + filter.Kinds = append(filter.Kinds, 0) } if err := applyFlagsToFilter(c, &filter); err != nil {