mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 18:04:14 +01:00
Load attachments for code comments (#30124)
Fix #30103 ps: comments has `LoadAttributes`, but maybe considering performance problem, we don't call it. (cherry picked from commit ce3c3512265df3b4940672be40065c4fb415ef95)
This commit is contained in:
parent
3a7d05f1ac
commit
fa87a57b59
1 changed files with 4 additions and 0 deletions
|
@ -117,6 +117,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…
Reference in a new issue