forked from kevadesu/forgejo
Make "link-action" backend code respond correct JSON content (#26680)
Otherwise the `link-action` JS code couldn't parse the response. Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
parent
af33a1187b
commit
e8b990999f
8 changed files with 8 additions and 8 deletions
|
@ -72,5 +72,5 @@ func SettingsDeleteAvatar(ctx *context.Context) {
|
|||
if err := repo_service.DeleteAvatar(ctx, ctx.Repo.Repository); err != nil {
|
||||
ctx.Flash.Error(fmt.Sprintf("DeleteAvatar: %v", err))
|
||||
}
|
||||
ctx.Redirect(ctx.Repo.RepoLink + "/settings")
|
||||
ctx.JSONRedirect(ctx.Repo.RepoLink + "/settings")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue