mirror of
https://github.com/fiatjaf/nak.git
synced 2025-08-08 12:28:29 -04:00
fetch: stop adding kind:0 to all requests when they already have a kind specified.
This commit is contained in:
8
fetch.go
8
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
|
||||
|
Reference in New Issue
Block a user