commit d7338c7a3d11b69e720fd643de0ca0963b92fc5b parent 05fe9b601262a37546ea46cbf3da2ccefcbf6f79 Author: alltheseas <64376233+alltheseas@users.noreply.github.com> Date: Thu, 20 Nov 2025 14:17:28 -0600 Update time.rs changed "note from the future" max allowed to two (2) minutes from one (1) day Diffstat:
| M | crates/notedeck/src/time.rs | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/crates/notedeck/src/time.rs b/crates/notedeck/src/time.rs @@ -10,8 +10,8 @@ const ONE_WEEK_IN_SECONDS: u64 = 604_800; const ONE_MONTH_IN_SECONDS: u64 = 2_592_000; // 30 days const ONE_YEAR_IN_SECONDS: u64 = 31_536_000; // 365 days -/// Maximum tolerated skew for note timestamps in the future (24h in seconds). -pub const MAX_FUTURE_NOTE_SKEW_SECS: u64 = ONE_DAY_IN_SECONDS; +/// Maximum tolerated skew for note timestamps in the future (2 minutes / 120 seconds). +pub const MAX_FUTURE_NOTE_SKEW_SECS: u64 = 2*ONE_MINUTE_IN_SECONDS; /// Returns the current UNIX timestamp in seconds. pub fn unix_time_secs() -> u64 {