From 2569363204cc3a766540b0a8db88edd001fc3497 Mon Sep 17 00:00:00 2001 From: zeripath Date: Tue, 29 Jan 2019 22:43:40 +0000 Subject: [PATCH] Also ensure the repo is loaded (#5895) 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 b807e52281..66ad46e39d 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}) }