1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-26 09:09:36 -05:00

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

backport #30124

(cherry picked from commit 7bffb923ce723947837fd1c12fe2f1edcba72315)
This commit is contained in:
yp05327 2024-03-27 17:06:23 +09:00 committed by Earl Warren
parent e9932a404d
commit 953914d1f7
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -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))