1
1
// Copyright 2016 The Gogs Authors. All rights reserved.
2
+ // Copyright 2018 The Gitea Authors. All rights reserved.
2
3
// Use of this source code is governed by a MIT-style
3
4
// license that can be found in the LICENSE file.
4
5
@@ -87,7 +88,9 @@ func mailIssueCommentToParticipants(e Engine, issue *Issue, doer *User, content
87
88
names = append (names , participants [i ].Name )
88
89
}
89
90
90
- SendIssueCommentMail (issue , doer , content , comment , tos )
91
+ for _ , to := range tos {
92
+ SendIssueCommentMail (issue , doer , content , comment , []string {to })
93
+ }
91
94
92
95
// Mail mentioned people and exclude watchers.
93
96
names = append (names , doer .Name )
@@ -99,7 +102,12 @@ func mailIssueCommentToParticipants(e Engine, issue *Issue, doer *User, content
99
102
100
103
tos = append (tos , mentions [i ])
101
104
}
102
- SendIssueMentionMail (issue , doer , content , comment , getUserEmailsByNames (e , tos ))
105
+
106
+ emails := getUserEmailsByNames (e , tos )
107
+
108
+ for _ , to := range emails {
109
+ SendIssueMentionMail (issue , doer , content , comment , []string {to })
110
+ }
103
111
104
112
return nil
105
113
}
0 commit comments