From 3498c7dd46ccece05715382b4da499af13de64a7 Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Mon, 19 Feb 2024 17:45:24 +1300 Subject: [PATCH] Fix AUTH time difference check --- src/nostr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nostr.rs b/src/nostr.rs index 200865f..2777de4 100644 --- a/src/nostr.rs +++ b/src/nostr.rs @@ -334,7 +334,7 @@ impl WebSocketService { // Verify the created_at timestamp is within reason let timediff = (Time::now().0 as i64).abs_diff(event.created_at().0 as i64); - if timediff < 600 { + if timediff > 600 { return Err( ChorusError::AuthFailure("Time is more than 10 minutes off".to_string()).into(), );