Browse Source

Also ensure the repo is loaded (#5895)

Signed-off-by: Andrew Thornton <art27@cantab.net>
tags/v1.9.0-dev
zeripath 5 years ago
parent
commit
2569363204
No account linked to committer's email address
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      models/issue_mail.go

+ 4
- 0
models/issue_mail.go View File

@@ -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})
}

Loading…
Cancel
Save