From 1ece6d0eab6f86dff42aa5e3c2705835c207ab8a Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Fri, 2 May 2025 23:17:37 -0300 Subject: [PATCH] khatru: fix nip70 handling inverted conditional. --- khatru/handlers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/khatru/handlers.go b/khatru/handlers.go index bc58997..53d7109 100644 --- a/khatru/handlers.go +++ b/khatru/handlers.go @@ -176,8 +176,8 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) { // check NIP-70 protected if nip70.IsProtected(env.Event) { - authed, isAuthed := GetAuthed(ctx) - if isAuthed { + authed, is := GetAuthed(ctx) + if !is { RequestAuth(ctx) ws.WriteJSON(nostr.OKEnvelope{ EventID: env.Event.ID,