fix fetch for non-pubkey cases.

This commit is contained in:
fiatjaf 2024-08-20 18:39:17 -03:00
parent a4d9ceecfa
commit 0240866fa1

View File

@ -91,10 +91,10 @@ var fetch = &cli.Command{
for _, url := range relays { for _, url := range relays {
relays = append(relays, url) 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 { if err := applyFlagsToFilter(c, &filter); err != nil {