Skip to content

Commit

Permalink
Also ensure the repo is loaded (#5895)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Thornton <[email protected]>
  • Loading branch information
zeripath authored Jan 29, 2019
1 parent 002e898 commit 2569363
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions models/issue_mail.go
Original file line number Diff line number Diff line change
Expand Up @@ -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})
}
Expand Down

0 comments on commit 2569363

Please sign in to comment.