mirror of
https://github.com/fiatjaf/nak.git
synced 2025-12-09 17:18:50 +00: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 {
|
if err := applyFlagsToFilter(c, &filter); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(filter.Authors) > 0 && len(filter.Kinds) == 0 {
|
||||||
|
filter.Kinds = append(filter.Kinds, 0)
|
||||||
|
}
|
||||||
|
|
||||||
if len(relays) == 0 {
|
if len(relays) == 0 {
|
||||||
ctx = lineProcessingError(ctx, "no relay hints found")
|
ctx = lineProcessingError(ctx, "no relay hints found")
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user