diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-08-23 17:36:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-23 17:36:57 +0800 |
commit | e8b990999f89535269d20983079a40a0a9488eff (patch) | |
tree | 3a16640046072a51a9020e917457a801461860c2 /routers/web/repo/setting | |
parent | af33a1187b0ed7cf1ffbe8aabddf7ed0380f2cc9 (diff) | |
download | gitea-e8b990999f89535269d20983079a40a0a9488eff.tar.gz gitea-e8b990999f89535269d20983079a40a0a9488eff.zip |
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>
Diffstat (limited to 'routers/web/repo/setting')
-rw-r--r-- | routers/web/repo/setting/avatar.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/setting/avatar.go b/routers/web/repo/setting/avatar.go index ec673ca288..ae80f1db01 100644 --- a/routers/web/repo/setting/avatar.go +++ b/routers/web/repo/setting/avatar.go @@ -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") } |