From 9b14b81a3548f5c3c5ab2c96fd074a28c75b052d Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Sun, 26 Jan 2025 09:41:18 +1300 Subject: [PATCH] Verify all events if verifying --- src/nostr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nostr.rs b/src/nostr.rs index 10c52b5..4d35446 100644 --- a/src/nostr.rs +++ b/src/nostr.rs @@ -299,7 +299,7 @@ impl WebSocketService { let event_flags = event_flags(event, &user); - if !event_flags.author_is_an_authorized_user || GLOBALS.config.read().verify_events { + if GLOBALS.config.read().verify_events { // Verify the event is valid (id is hash, signature is valid) if let Err(e) = event.verify() { return Err(ChorusError::EventIsInvalid(format!("{}", e.inner)).into());