From c914f48f3d1d4c7bc98612c4c44824de60ea7a2b Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Tue, 29 Jan 2019 21:40:55 +0000 Subject: [PATCH] Also ensure the repo is loaded Signed-off-by: Andrew Thornton --- models/issue_mail.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/models/issue_mail.go b/models/issue_mail.go index b807e52281be..66ad46e39d00 100644 --- a/models/issue_mail.go +++ b/models/issue_mail.go @@ -88,6 +88,10 @@ func mailIssueCommentToParticipants(e Engine, issue *Issue, doer *User, content names = append(names, participants[i].Name) } + if err := issue.loadRepo(e); err != nil { + return err + } + for _, to := range tos { SendIssueCommentMail(issue, doer, content, comment, []string{to}) }