Compare commits

..

2 Commits

Author SHA1 Message Date
OceanSlim
f1511a9b8b
Merge pull request #29 from UTXOnly/timestamp
Adjust event time constraints on each event handle
2024-10-27 20:52:45 -04:00
Brian Hartford
49b628b7e0 Adjust event time contrainst on each event handle 2024-10-27 17:04:25 -04:00

View File

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