Skip to content

Commit

Permalink
Load attachments for code comments (#30124)
Browse files Browse the repository at this point in the history
Fix #30103

ps: comments has `LoadAttributes`, but maybe considering performance
problem, we don't call it.
  • Loading branch information
yp05327 committed Mar 27, 2024
1 parent a9e5706 commit ce3c351
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 ce3c351

Please sign in to comment.