Also ensure the repo is loaded (#5895)

Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
zeripath 2019-01-29 22:43:40 +00:00 committed by GitHub
parent 002e898bcf
commit 2569363204
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,6 +88,10 @@ func mailIssueCommentToParticipants(e Engine, issue *Issue, doer *User, content
names = append(names, participants[i].Name) names = append(names, participants[i].Name)
} }
if err := issue.loadRepo(e); err != nil {
return err
}
for _, to := range tos { for _, to := range tos {
SendIssueCommentMail(issue, doer, content, comment, []string{to}) SendIssueCommentMail(issue, doer, content, comment, []string{to})
} }