From 3ca316020204e80cb690fa554cf3c92eab5f0540 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 25 Sep 2024 14:33:43 -0300 Subject: [PATCH] fix missing ! in CheckID() --- handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers.go b/handlers.go index ef87997..90a5a6f 100644 --- a/handlers.go +++ b/handlers.go @@ -127,7 +127,7 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) { switch env := envelope.(type) { case *nostr.EventEnvelope: // check id - if env.Event.CheckID() { + if !env.Event.CheckID() { ws.WriteJSON(nostr.OKEnvelope{EventID: env.Event.ID, OK: false, Reason: "invalid: id is computed incorrectly"}) return }