From 4c76cf5a760d6287b853c0943ac2f86c938c56be Mon Sep 17 00:00:00 2001 From: Jonas Franz Date: Tue, 24 Jul 2018 16:08:36 +0200 Subject: [PATCH] Append comments instead of setting Signed-off-by: Jonas Franz --- models/git_diff.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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...)