From cafcfc6bcc9c5f0a3afd9d4bb73375f60bd9e1dd Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 8 May 2025 12:36:55 -0300 Subject: [PATCH] khatru: fix GetAuthed() boolean return value. --- khatru/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/khatru/utils.go b/khatru/utils.go index 9d8c5f7..0a03c04 100644 --- a/khatru/utils.go +++ b/khatru/utils.go @@ -33,7 +33,7 @@ func GetConnection(ctx context.Context) *WebSocket { func GetAuthed(ctx context.Context) (nostr.PubKey, bool) { if conn := GetConnection(ctx); conn != nil { - return conn.AuthedPublicKey, true + return conn.AuthedPublicKey, conn.AuthedPublicKey != nostr.ZeroPK } if nip86Auth := ctx.Value(nip86HeaderAuthKey); nip86Auth != nil { return nip86Auth.(nostr.PubKey), true