Преглед изворни кода

Load attachments for code comments (#30124)

Fix #30103

ps: comments has `LoadAttributes`, but maybe considering performance
problem, we don't call it.
tags/v1.22.0-rc0
yp05327 пре 2 месеци
родитељ
комит
ce3c351226
No account linked to committer's email address
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4
    0
      models/issues/comment_code.go

+ 4
- 0
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…
Откажи
Сачувај