[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
This commit is contained in:
parent
0a51ae26bc
commit
a3f1249f0a
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue