1
0
Fork 0
forked from forgejo/forgejo

fix cherry-pick

This commit is contained in:
oliverpool 2024-02-27 16:05:59 +01:00 committed by Earl Warren
parent f95fb8cc44
commit 3c9b176348
2 changed files with 10 additions and 6 deletions

View file

@ -989,10 +989,12 @@ func viewPullFiles(ctx *context.Context, specifiedStartCommit, specifiedEndCommi
for _, file := range diff.Files {
for _, section := range file.Sections {
for _, line := range section.Lines {
for _, comment := range line.Comments {
if err := comment.LoadAttachments(ctx); err != nil {
ctx.ServerError("LoadAttachments", err)
return
for _, comments := range line.Conversations {
for _, comment := range comments {
if err := comment.LoadAttachments(ctx); err != nil {
ctx.ServerError("LoadAttachments", err)
return
}
}
}
}