1
0
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:
fiatjaf
2025-02-03 15:54:12 -03:00
parent ad6b8c4ba5
commit ff8701a3b0

@@ -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