diff options
author | yp05327 <576951401@qq.com> | 2023-02-18 21:11:03 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-18 20:11:03 +0800 |
commit | bd66fa586a0da58c4cf2f5f8390aef4bac9d0527 (patch) | |
tree | 0aa52def7fb8c81ca91a2b882261e9db6a7c174a /modules/context | |
parent | 007d181bb51330c4c24e78c2f40a2e49cae45ed9 (diff) | |
download | gitea-bd66fa586a0da58c4cf2f5f8390aef4bac9d0527.tar.gz gitea-bd66fa586a0da58c4cf2f5f8390aef4bac9d0527.zip |
Rename `repo.GetOwner` to `repo.LoadOwner` (#22967)
Fixes https://github.com/go-gitea/gitea/issues/22963
---------
Co-authored-by: Yarden Shoham <hrsi88@gmail.com>
Diffstat (limited to 'modules/context')
-rw-r--r-- | modules/context/repo.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/context/repo.go b/modules/context/repo.go index a38376ff46..e4ac65e961 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -273,8 +273,8 @@ func RetrieveBaseRepo(ctx *Context, repo *repo_model.Repository) { } ctx.ServerError("GetBaseRepo", err) return - } else if err = repo.BaseRepo.GetOwner(ctx); err != nil { - ctx.ServerError("BaseRepo.GetOwner", err) + } else if err = repo.BaseRepo.LoadOwner(ctx); err != nil { + ctx.ServerError("BaseRepo.LoadOwner", err) return } } @@ -290,8 +290,8 @@ func RetrieveTemplateRepo(ctx *Context, repo *repo_model.Repository) { } ctx.ServerError("GetTemplateRepo", err) return - } else if err = templateRepo.GetOwner(ctx); err != nil { - ctx.ServerError("TemplateRepo.GetOwner", err) + } else if err = templateRepo.LoadOwner(ctx); err != nil { + ctx.ServerError("TemplateRepo.LoadOwner", err) return } @@ -356,8 +356,8 @@ func RedirectToRepo(ctx *Context, redirectRepoID int64) { func repoAssignment(ctx *Context, repo *repo_model.Repository) { var err error - if err = repo.GetOwner(ctx); err != nil { - ctx.ServerError("GetOwner", err) + if err = repo.LoadOwner(ctx); err != nil { + ctx.ServerError("LoadOwner", err) return } |