summaryrefslogtreecommitdiffstats
path: root/models/issue_mail.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-01-29 22:43:40 +0000
committerGitHub <noreply@github.com>2019-01-29 22:43:40 +0000
commit2569363204cc3a766540b0a8db88edd001fc3497 (patch)
tree43e653acf5b9ae16872d5003b8b573cacf426513 /models/issue_mail.go
parent002e898bcf7cf369fae7de3a0055b69e8b45328e (diff)
downloadgitea-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.go4
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})
}