aboutsummaryrefslogtreecommitdiffstats
path: root/models/review.go
diff options
context:
space:
mode:
authorguillep2k <18600385+guillep2k@users.noreply.github.com>2019-11-15 09:59:21 -0300
committerzeripath <art27@cantab.net>2019-11-15 12:59:21 +0000
commit9930d47be2516ba4dc33ddfc382f9a829628929d (patch)
treebafde602be9cc642bfdd6860c92d805c1cce897d /models/review.go
parent97dc314652422d392b26e7ea1ef3991903c6f22c (diff)
downloadgitea-9930d47be2516ba4dc33ddfc382f9a829628929d.tar.gz
gitea-9930d47be2516ba4dc33ddfc382f9a829628929d.zip
Add review comments to mail notifications (#8996)
Diffstat (limited to 'models/review.go')
-rw-r--r--models/review.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/models/review.go b/models/review.go
index e1674e885d..0dc44a2a4c 100644
--- a/models/review.go
+++ b/models/review.go
@@ -62,7 +62,9 @@ type Review struct {
}
func (r *Review) loadCodeComments(e Engine) (err error) {
- r.CodeComments, err = fetchCodeCommentsByReview(e, r.Issue, nil, r)
+ if r.CodeComments == nil {
+ r.CodeComments, err = fetchCodeCommentsByReview(e, r.Issue, nil, r)
+ }
return
}