diff --git a/models/git_diff.go b/models/git_diff.go index 07009ade7..006238cd0 100644 --- a/models/git_diff.go +++ b/models/git_diff.go @@ -252,7 +252,7 @@ func (diff *Diff) LoadComments(issue *Issue, currentUser *User) error { for _, section := range file.Sections { for _, line := range section.Lines { if comments, ok := lineCommits[int64(line.LeftIdx*-1)]; ok { - line.Comments = comments + line.Comments = append(line.Comments, comments...) } if comments, ok := lineCommits[int64(line.RightIdx)]; ok { line.Comments = append(line.Comments, comments...)