loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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)

authored by

yp05327 and committed by
Earl Warren
fa87a57b 3a7d05f1

+4
+4
models/issues/comment_code.go
··· 117 117 return nil, err 118 118 } 119 119 120 + if err := comments.LoadAttachments(ctx); err != nil { 121 + return nil, err 122 + } 123 + 120 124 // Find all reviews by ReviewID 121 125 reviews := make(map[int64]*Review) 122 126 ids := make([]int64, 0, len(comments))