mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 12:49:52 +01:00
[MODERATION] restore redirect on unblock
ctx.RedirectToFirst(ctx.FormString("redirect_to"), ctx.ContextUser.HomeLink())
was replaced by
ctx.JSONOK()
in 128d77a3a
Following up fixes for "Fix inconsistent user profile layout across tabs" (#25739)
thus changing the behavior (nicely spotted by the tests). This
restores it.
This commit is contained in:
parent
5a11569a01
commit
597c243707
1 changed files with 1 additions and 2 deletions
|
@ -314,6 +314,5 @@ func Action(ctx *context.Context) {
|
|||
})
|
||||
return
|
||||
}
|
||||
|
||||
ctx.JSONOK()
|
||||
ctx.RedirectToFirst(ctx.FormString("redirect_to"), ctx.ContextUser.HomeLink())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue