khatru: fix nip70 handling inverted conditional.
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user