Skip to content

Commit

Permalink
Load attachments for code comments (#30124) (#30126)
Browse files Browse the repository at this point in the history
backport #30124
  • Loading branch information
yp05327 authored Mar 27, 2024
1 parent 0c10c3a commit 7bffb92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions models/issues/comment_code.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 7bffb92

Please sign in to comment.