summaryrefslogtreecommitdiffstats
path: root/models/issues/comment_code.go
diff options
context:
space:
mode:
authorJakobDev <jakobdev@gmx.de>2023-09-29 14:12:54 +0200
committerGitHub <noreply@github.com>2023-09-29 12:12:54 +0000
commitcf0df023be06c8acec4fc8fb05eab1d1c2e52fd1 (patch)
tree4fd233354202942b597f3591a22e5ea14fe7d0eb /models/issues/comment_code.go
parent3945c26722dececf2433107c47821238dae7e3c2 (diff)
downloadgitea-cf0df023be06c8acec4fc8fb05eab1d1c2e52fd1.tar.gz
gitea-cf0df023be06c8acec4fc8fb05eab1d1c2e52fd1.zip
More `db.DefaultContext` refactor (#27265)
Part of #27065 This PR touches functions used in templates. As templates are not static typed, errors are harder to find, but I hope I catch it all. I think some tests from other persons do not hurt.
Diffstat (limited to 'models/issues/comment_code.go')
-rw-r--r--models/issues/comment_code.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issues/comment_code.go b/models/issues/comment_code.go
index d447d7542c..49927fbbe2 100644
--- a/models/issues/comment_code.go
+++ b/models/issues/comment_code.go
@@ -99,11 +99,11 @@ func findCodeComments(ctx context.Context, opts FindCommentsOptions, issue *Issu
comments[n] = comment
n++
- if err := comment.LoadResolveDoer(); err != nil {
+ if err := comment.LoadResolveDoer(ctx); err != nil {
return nil, err
}
- if err := comment.LoadReactions(issue.Repo); err != nil {
+ if err := comment.LoadReactions(ctx, issue.Repo); err != nil {
return nil, err
}