feat(NIP-22): advertise support for event created_at limits

The `reject_future_limits` option can now be disabled, and is by
default.

NIP-11 advertises support for created_at limits.

The message for future-dated events has been modified, to be closer to
the recommended example in the NIP.
This commit is contained in:
Greg Heartsfield
2022-09-10 20:40:10 -05:00
parent 283967f8cc
commit 72f1c19b21
5 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -44,8 +44,8 @@ port = 8080
[options]
# Reject events that have timestamps greater than this many seconds in
# the future. Defaults to rejecting anything greater than 30 minutes
# from the current time.
# the future. Recommended to reject anything greater than 30 minutes
# from the current time, but the default is to allow any date.
reject_future_seconds = 1800
[limits]