mirror of
https://github.com/0ceanSlim/grain.git
synced 2024-11-24 09:23:23 +00:00
Merge pull request #29 from UTXOnly/timestamp
Adjust event time constraints on each event handle
This commit is contained in:
commit
f1511a9b8b
@ -79,6 +79,9 @@ func validateEventTimestamp(evt nostr.Event) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Adjust event time constraints in the configuration
|
||||||
|
utils.AdjustEventTimeConstraints(cfg)
|
||||||
|
|
||||||
// Use current time for max and a fixed date for min if not specified
|
// Use current time for max and a fixed date for min if not specified
|
||||||
now := time.Now().Unix()
|
now := time.Now().Unix()
|
||||||
minCreatedAt := cfg.EventTimeConstraints.MinCreatedAt
|
minCreatedAt := cfg.EventTimeConstraints.MinCreatedAt
|
||||||
|
Loading…
Reference in New Issue
Block a user