Skip to content

Commit ce3c351

Browse files
authored
Load attachments for code comments (#30124)
Fix #30103 ps: comments has `LoadAttributes`, but maybe considering performance problem, we don't call it.
1 parent a9e5706 commit ce3c351

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

models/issues/comment_code.go

+4
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ func findCodeComments(ctx context.Context, opts FindCommentsOptions, issue *Issu
7474
return nil, err
7575
}
7676

77+
if err := comments.LoadAttachments(ctx); err != nil {
78+
return nil, err
79+
}
80+
7781
// Find all reviews by ReviewID
7882
reviews := make(map[int64]*Review)
7983
ids := make([]int64, 0, len(comments))

0 commit comments

Comments
 (0)