Skip to content

Commit 7bffb92

Browse files
authored
Load attachments for code comments (#30124) (#30126)
backport #30124
1 parent 0c10c3a commit 7bffb92

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)