Skip to content

Commit 2569363

Browse files
authored
Also ensure the repo is loaded (#5895)
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 002e898 commit 2569363

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

models/issue_mail.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ func mailIssueCommentToParticipants(e Engine, issue *Issue, doer *User, content
8888
names = append(names, participants[i].Name)
8989
}
9090

91+
if err := issue.loadRepo(e); err != nil {
92+
return err
93+
}
94+
9195
for _, to := range tos {
9296
SendIssueCommentMail(issue, doer, content, comment, []string{to})
9397
}

0 commit comments

Comments
 (0)