LimitZero when -l 0 and when --stream

This commit is contained in:
fiatjaf
2024-03-29 08:16:15 -03:00
parent 8ddb9ce021
commit c3ea9c15f6
2 changed files with 3 additions and 1 deletions

2
req.go
View File

@@ -246,6 +246,8 @@ example:
}
if limit := c.Int("limit"); limit != 0 {
filter.Limit = limit
} else if c.IsSet("limit") || c.Bool("stream") {
filter.LimitZero = true
}
if len(relayUrls) > 0 {