1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-03 09:07:19 +00:00

Use context for RepositoryList.LoadAttributes (#23435)

This commit is contained in:
yp05327
2023-03-13 20:31:41 +09:00
committed by GitHub
parent cdc9e91750
commit d74a7efb60
3 changed files with 5 additions and 9 deletions

View File

@ -117,7 +117,7 @@ func getNotifications(ctx *context.Context) {
return
}
notifications = notifications.Without(failures)
if err := repos.LoadAttributes(); err != nil { // TODO
if err := repos.LoadAttributes(ctx); err != nil {
ctx.ServerError("LoadAttributes", err)
return
}