Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-29 05:06:11 +01:00

[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 a3f1249f0a)
This commit is contained in:
Gusted 2024-04-06 20:57:51 +02:00 committed by GitHub
parent 730c667122
commit 0af1418e6e

View file

@ -358,6 +358,7 @@ func Action(ctx *context.Context) {
redirectViaJSON = true redirectViaJSON = true
case "unblock": case "unblock":
err = user_model.UnblockUser(ctx, ctx.Doer.ID, ctx.ContextUser.ID) err = user_model.UnblockUser(ctx, ctx.Doer.ID, ctx.ContextUser.ID)
redirectViaJSON = true
} }
if err != nil { if err != nil {