Verify all events if verifying

This commit is contained in:
Mike Dilger 2025-01-26 09:41:18 +13:00
parent 5a1ab30c8f
commit 9b14b81a35
No known key found for this signature in database
GPG Key ID: 47581A78D4329BA4

View File

@ -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());