diff options
author | techknowlogick <techknowlogick@gitea.com> | 2024-09-09 22:23:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-10 02:23:07 +0000 |
commit | d9a7748cdc3f13392acbde87edd18602b566c216 (patch) | |
tree | 0f7191740e0335ccf61f12bb94d40ea36b7b0ed7 /routers/web/user | |
parent | 1620e3f03bad1feb22c8e9c3c9baf4da04aaefe5 (diff) | |
download | gitea-d9a7748cdc3f13392acbde87edd18602b566c216.tar.gz gitea-d9a7748cdc3f13392acbde87edd18602b566c216.zip |
bump to go 1.23 (#31855)
Diffstat (limited to 'routers/web/user')
-rw-r--r-- | routers/web/user/home.go | 2 | ||||
-rw-r--r-- | routers/web/user/profile.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/user/home.go b/routers/web/user/home.go index 2ecc2cc8d1..2b16142f6d 100644 --- a/routers/web/user/home.go +++ b/routers/web/user/home.go @@ -730,7 +730,7 @@ func UsernameSubRoute(ctx *context.Context) { // check view permissions if !user_model.IsUserVisibleToViewer(ctx, ctx.ContextUser, ctx.Doer) { - ctx.NotFound("user", fmt.Errorf(ctx.ContextUser.Name)) + ctx.NotFound("user", fmt.Errorf("%s", ctx.ContextUser.Name)) return false } return true diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go index 5748ce45ab..d0abf603c3 100644 --- a/routers/web/user/profile.go +++ b/routers/web/user/profile.go @@ -54,7 +54,7 @@ func OwnerProfile(ctx *context.Context) { func userProfile(ctx *context.Context) { // check view permissions if !user_model.IsUserVisibleToViewer(ctx, ctx.ContextUser, ctx.Doer) { - ctx.NotFound("user", fmt.Errorf(ctx.ContextUser.Name)) + ctx.NotFound("user", fmt.Errorf("%s", ctx.ContextUser.Name)) return } |