From ee0aeb762f464155085c78ab89aea0e4686ca010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Mon, 10 Mar 2025 22:29:45 +0100 Subject: [PATCH] client: make InternalAuth.Name omitempty to allow @anoninternal auth In service of https://lists.sr.ht/~sircmpwn/sr.ht-dev/%3C5webr4rzb2eulturkipecdkwms6m7kk2yzafse4p7jybaoknzz@tarta.nabijaczleweli.xyz%3E#%3C56tsvmov5pbxdinyz22rsiq4xzg2k47egmkgdj64fegphk2kvf@tarta.nabijaczleweli.xyz%3E --- client/graphql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/graphql.go b/client/graphql.go index 7b1a4b7726c8ddd0a48f798b2e1c64fe6e3c20b3..3dacb8280bc9875e18c4eb0fda8b3908766833d6 100644 --- a/client/graphql.go +++ b/client/graphql.go @@ -25,7 +25,7 @@ type GraphQLQuery struct { } type InternalAuth struct { - Name string `json:"name"` + Name string `json:"name",omitempty` ClientID string `json:"client_id"` NodeID string `json:"node_id"` }