diff --git a/routers/api/v1/activitypub/person.go b/routers/api/v1/activitypub/person.go index 9b18dc118b..663493312f 100644 --- a/routers/api/v1/activitypub/person.go +++ b/routers/api/v1/activitypub/person.go @@ -93,6 +93,7 @@ func Person(ctx *context.APIContext) { binary, err = json.Marshal(jsonmap) if err != nil { ctx.Error(http.StatusInternalServerError, "Marshal", err) + return } if _, err = ctx.Resp.Write(binary); err != nil { log.Error("write to resp err: %v", err)