khatru: fix nip70 handling inverted conditional.

This commit is contained in:
fiatjaf
2025-05-02 23:17:37 -03:00
parent d59692781d
commit 1ece6d0eab

View File

@@ -176,8 +176,8 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) {
// check NIP-70 protected // check NIP-70 protected
if nip70.IsProtected(env.Event) { if nip70.IsProtected(env.Event) {
authed, isAuthed := GetAuthed(ctx) authed, is := GetAuthed(ctx)
if isAuthed { if !is {
RequestAuth(ctx) RequestAuth(ctx)
ws.WriteJSON(nostr.OKEnvelope{ ws.WriteJSON(nostr.OKEnvelope{
EventID: env.Event.ID, EventID: env.Event.ID,