From 461c2d3e33470c2cd8a3e78f8737395c8e3bbb3b Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Mon, 19 Feb 2024 16:01:13 +1300 Subject: [PATCH] Fix when to verify events --- src/nostr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nostr.rs b/src/nostr.rs index 8b5e5dd..6cbeb0e 100644 --- a/src/nostr.rs +++ b/src/nostr.rs @@ -188,7 +188,7 @@ impl WebSocketService { let event_flags = event_flags(&event, &user).await; - if GLOBALS.config.read().await.verify_events { + if !event_flags.author_is_an_authorized_user || GLOBALS.config.read().await.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)).into());