From 0af1418e6e0c892cd10e71254a558de361d60e7e Mon Sep 17 00:00:00 2001 From: Gusted Date: Sat, 6 Apr 2024 20:57:51 +0200 Subject: [PATCH] [BUG] Fix unblock action - At some point the unblock button was transformed into being handled by Javascript, however the endpoint didn't yet respond in JSON. - Ref: https://codeberg.org/kita/.profile/raw/branch/main/img/G94IqS9.png (cherry picked from commit a3f1249f0a52b348a9002954c370cb27f574d265) --- routers/web/user/profile.go | 1 + 1 file changed, 1 insertion(+) 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 {