차단된 유저 못 가져오는 문제 수정
This commit is contained in:
@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user