Skip to content

Commit d06772b

Browse files
author
Anthony Wang
committed
Return if marshalling error
1 parent faf2855 commit d06772b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/api/v1/activitypub/person.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ func Person(ctx *context.APIContext) {
9393
binary, err = json.Marshal(jsonmap)
9494
if err != nil {
9595
ctx.Error(http.StatusInternalServerError, "Marshal", err)
96+
return
9697
}
9798
if _, err = ctx.Resp.Write(binary); err != nil {
9899
log.Error("write to resp err: %v", err)

0 commit comments

Comments
 (0)