mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Following up fixes for "Fix inconsistent user profile layout across tabs" (#25739)
Follow https://github.com/go-gitea/gitea/pull/25625#issuecomment-1621577816 1. Fix the incorrect "project view" layout 2. Fix the "follow/unfollow" link on "packages" and "projects" tab Before:  After:  --------- Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
@@ -287,9 +287,9 @@ func Action(ctx *context.Context) {
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
ctx.ServerError(fmt.Sprintf("Action (%s)", ctx.FormString("action")), err)
|
||||
log.Error("Failed to apply action %q: %v", ctx.FormString("action"), err)
|
||||
ctx.JSONError(fmt.Sprintf("Action %q failed", ctx.FormString("action")))
|
||||
return
|
||||
}
|
||||
// FIXME: We should check this URL and make sure that it's a valid Gitea URL
|
||||
ctx.RedirectToFirst(ctx.FormString("redirect_to"), ctx.ContextUser.HomeLink())
|
||||
ctx.JSONOK()
|
||||
}
|
||||
|
Reference in New Issue
Block a user