From db90ce931fcd9bfb40f3aa725317689a00dc4fa5 Mon Sep 17 00:00:00 2001 From: mountain Date: Wed, 29 Nov 2023 09:30:22 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B0=A8=EB=8B=A8=EB=90=9C=20=EC=9C=A0?= =?UTF-8?q?=EC=A0=80=20=EB=AA=BB=20=EA=B0=80=EC=A0=B8=EC=98=A4=EB=8A=94=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/api.go b/core/api.go index ba6f225..51774f5 100644 --- a/core/api.go +++ b/core/api.go @@ -162,7 +162,7 @@ func (caller apiCaller) blockAPI(w http.ResponseWriter, r *http.Request) error { mg := caller.mg if r.Method == "GET" { target, ok := gocommon.ReadObjectIDFormValue(r.Form, "accid") - if ok { + if !ok { json.NewEncoder(w).Encode(mg.bl.all()) } else if !target.IsZero() { if blocked, ok := mg.bl.get(target); ok && blocked != nil {