diff options
author | zeripath <art27@cantab.net> | 2019-01-29 22:43:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-29 22:43:40 +0000 |
commit | 2569363204cc3a766540b0a8db88edd001fc3497 (patch) | |
tree | 43e653acf5b9ae16872d5003b8b573cacf426513 /models/issue_mail.go | |
parent | 002e898bcf7cf369fae7de3a0055b69e8b45328e (diff) | |
download | gitea-2569363204cc3a766540b0a8db88edd001fc3497.tar.gz gitea-2569363204cc3a766540b0a8db88edd001fc3497.zip |
Also ensure the repo is loaded (#5895)
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'models/issue_mail.go')
-rw-r--r-- | models/issue_mail.go | 4 |
1 files changed, 4 insertions, 0 deletions
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}) } |