@@ -14,7 +14,6 @@ import (
14
14
"code.gitea.io/gitea/models/db"
15
15
repo_model "code.gitea.io/gitea/models/repo"
16
16
user_model "code.gitea.io/gitea/models/user"
17
- "code.gitea.io/gitea/modules/base"
18
17
"code.gitea.io/gitea/modules/context"
19
18
"code.gitea.io/gitea/modules/git"
20
19
"code.gitea.io/gitea/modules/log"
@@ -27,10 +26,6 @@ import (
27
26
shared_user "code.gitea.io/gitea/routers/web/shared/user"
28
27
)
29
28
30
- const (
31
- tplProfileBigAvatar base.TplName = "shared/user/profile_big_avatar"
32
- )
33
-
34
29
// OwnerProfile render profile page for a user or a organization (aka, repo owner)
35
30
func OwnerProfile (ctx * context.Context ) {
36
31
if strings .Contains (ctx .Req .Header .Get ("Accept" ), "application/rss+xml" ) {
@@ -314,10 +309,8 @@ func Action(ctx *context.Context) {
314
309
315
310
if err != nil {
316
311
log .Error ("Failed to apply action %q: %v" , ctx .FormString ("action" ), err )
317
- ctx .Error ( http . StatusBadRequest , fmt .Sprintf ("Action %q failed" , ctx .FormString ("action" )))
312
+ ctx .JSONError ( fmt .Sprintf ("Action %q failed" , ctx .FormString ("action" )))
318
313
return
319
314
}
320
-
321
- shared_user .PrepareContextForProfileBigAvatar (ctx )
322
- ctx .HTML (http .StatusOK , tplProfileBigAvatar )
315
+ ctx .JSONOK ()
323
316
}
0 commit comments