aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-03-13 20:31:41 +0900
committerGitHub <noreply@github.com>2023-03-13 11:31:41 +0000
commitd74a7efb60f94a4b8e6e5f65332f94f1be31b761 (patch)
treed59b2946cb8d957ef71c7ef5f7d8f59396c7b475 /routers/api
parentcdc9e91750036fc370db65a44618f3139db11ae1 (diff)
downloadgitea-d74a7efb60f94a4b8e6e5f65332f94f1be31b761.tar.gz
gitea-d74a7efb60f94a4b8e6e5f65332f94f1be31b761.zip
Use context for `RepositoryList.LoadAttributes` (#23435)
Diffstat (limited to 'routers/api')
-rw-r--r--routers/api/v1/user/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/user/repo.go b/routers/api/v1/user/repo.go
index dcb14780a7..7a8978cc4e 100644
--- a/routers/api/v1/user/repo.go
+++ b/routers/api/v1/user/repo.go
@@ -31,7 +31,7 @@ func listUserRepos(ctx *context.APIContext, u *user_model.User, private bool) {
return
}
- if err := repos.LoadAttributes(); err != nil {
+ if err := repos.LoadAttributes(ctx); err != nil {
ctx.Error(http.StatusInternalServerError, "RepositoryList.LoadAttributes", err)
return
}