mirror of https://github.com/fiatjaf/nak.git
fetch: stop adding kind:0 to all requests when they already have a kind specified.
This commit is contained in:
parent
ad6b8c4ba5
commit
ff8701a3b0
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
|
||||
|
|
Loading…
Reference in New Issue