Skip to content

Commit

Permalink
fix fetch for non-pubkey cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Aug 20, 2024
1 parent a4d9cee commit 0240866
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0240866

Please sign in to comment.