diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go index 89d22d3ef4..2e4b9dae65 100644 --- a/routers/web/user/profile.go +++ b/routers/web/user/profile.go @@ -358,6 +358,7 @@ func Action(ctx *context.Context) { redirectViaJSON = true case "unblock": err = user_model.UnblockUser(ctx, ctx.Doer.ID, ctx.ContextUser.ID) + redirectViaJSON = true } if err != nil {