aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2024-03-27 17:06:23 +0900
committerGitHub <noreply@github.com>2024-03-27 16:06:23 +0800
commit7bffb923ce723947837fd1c12fe2f1edcba72315 (patch)
treeb248f6063a9ba2b15cce81a4df65b7b17f055d4e
parent0c10c3a282463d9ada2a6d05cfc733e742c93351 (diff)
downloadgitea-7bffb923ce723947837fd1c12fe2f1edcba72315.tar.gz
gitea-7bffb923ce723947837fd1c12fe2f1edcba72315.zip
Load attachments for code comments (#30124) (#30126)
backport #30124
-rw-r--r--models/issues/comment_code.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/issues/comment_code.go b/models/issues/comment_code.go
index 27f6694134..e50ce1e07c 100644
--- a/models/issues/comment_code.go
+++ b/models/issues/comment_code.go
@@ -74,6 +74,10 @@ func findCodeComments(ctx context.Context, opts FindCommentsOptions, issue *Issu
return nil, err
}
+ if err := comments.LoadAttachments(ctx); err != nil {
+ return nil, err
+ }
+
// Find all reviews by ReviewID
reviews := make(map[int64]*Review)
ids := make([]int64, 0, len(comments))