// Copyright 2016 The Gogs Authors. All rights reserved.
+// Copyright 2018 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
names = append(names, participants[i].Name)
}
- SendIssueCommentMail(issue, doer, content, comment, tos)
+ for _, to := range tos {
+ SendIssueCommentMail(issue, doer, content, comment, []string{to})
+ }
// Mail mentioned people and exclude watchers.
names = append(names, doer.Name)
tos = append(tos, mentions[i])
}
- SendIssueMentionMail(issue, doer, content, comment, getUserEmailsByNames(e, tos))
+
+ emails := getUserEmailsByNames(e, tos)
+
+ for _, to := range emails {
+ SendIssueMentionMail(issue, doer, content, comment, []string{to})
+ }
return nil
}