Load attachments for code comments (#30124) (#30126)

backport #30124
pull/30155/head^2
yp05327 8 months ago committed by GitHub
parent 0c10c3a282
commit 7bffb923ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      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))

Loading…
Cancel
Save