차단된 유저 못 가져오는 문제 수정

This commit is contained in:
2023-11-29 09:30:22 +09:00
parent 7639c749dc
commit db90ce931f

View File

@ -162,7 +162,7 @@ func (caller apiCaller) blockAPI(w http.ResponseWriter, r *http.Request) error {
mg := caller.mg mg := caller.mg
if r.Method == "GET" { if r.Method == "GET" {
target, ok := gocommon.ReadObjectIDFormValue(r.Form, "accid") target, ok := gocommon.ReadObjectIDFormValue(r.Form, "accid")
if ok { if !ok {
json.NewEncoder(w).Encode(mg.bl.all()) json.NewEncoder(w).Encode(mg.bl.all())
} else if !target.IsZero() { } else if !target.IsZero() {
if blocked, ok := mg.bl.get(target); ok && blocked != nil { if blocked, ok := mg.bl.get(target); ok && blocked != nil {