adapt to since and until not being pointers.

This commit is contained in:
fiatjaf
2025-05-08 09:59:03 -03:00
parent f799c65779
commit aadcc73906
8 changed files with 20 additions and 27 deletions

7
req.go
View File

@@ -286,13 +286,10 @@ func applyFlagsToFilter(c *cli.Command, filter *nostr.Filter) error {
}
if c.IsSet("since") {
nts := getNaturalDate(c, "since")
filter.Since = &nts
filter.Since = getNaturalDate(c, "since")
}
if c.IsSet("until") {
nts := getNaturalDate(c, "until")
filter.Until = &nts
filter.Until = getNaturalDate(c, "until")
}
if limit := c.Uint("limit"); limit != 0 {