Skip to content

Commit 0240866

Browse files
committed
fix fetch for non-pubkey cases.
1 parent a4d9cee commit 0240866

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fetch.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ var fetch = &cli.Command{
9191
for _, url := range relays {
9292
relays = append(relays, url)
9393
}
94+
}
9495

95-
if len(filter.Kinds) == 0 {
96-
filter.Kinds = append(filter.Kinds, 0)
97-
}
96+
if len(filter.Authors) > 0 && len(filter.Kinds) == 0 {
97+
filter.Kinds = append(filter.Kinds, 0)
9898
}
9999

100100
if err := applyFlagsToFilter(c, &filter); err != nil {

0 commit comments

Comments
 (0)