@@ -104,14 +104,14 @@ func (m *mailNotifier) NotifyIssueChangeAssignee(doer *models.User, issue *model
104104 // mail only sent to added assignees and not self-assignee
105105 if ! removed && doer .ID != assignee .ID && assignee .EmailNotifications () == models .EmailNotificationsEnabled {
106106 ct := fmt .Sprintf ("Assigned #%d." , issue .Index )
107- mailer .SendIssueAssignedMail (issue , doer , ct , comment , []string {assignee . Email })
107+ mailer .SendIssueAssignedMail (issue , doer , ct , comment , []* models. User {assignee })
108108 }
109109}
110110
111111func (m * mailNotifier ) NotifyPullReviewRequest (doer * models.User , issue * models.Issue , reviewer * models.User , isRequest bool , comment * models.Comment ) {
112112 if isRequest && doer .ID != reviewer .ID && reviewer .EmailNotifications () == models .EmailNotificationsEnabled {
113113 ct := fmt .Sprintf ("Requested to review %s." , issue .HTMLURL ())
114- mailer .SendIssueAssignedMail (issue , doer , ct , comment , []string {reviewer . Email })
114+ mailer .SendIssueAssignedMail (issue , doer , ct , comment , []* models. User {reviewer })
115115 }
116116}
117117
@@ -153,7 +153,7 @@ func (m *mailNotifier) NotifyPullRequestPushCommits(doer *models.User, pr *model
153153}
154154
155155func (m * mailNotifier ) NotifyPullRevieweDismiss (doer * models.User , review * models.Review , comment * models.Comment ) {
156- if err := mailer .MailParticipantsComment (comment , models .ActionPullReviewDismissed , review .Issue , [] * models. User {} ); err != nil {
156+ if err := mailer .MailParticipantsComment (comment , models .ActionPullReviewDismissed , review .Issue , nil ); err != nil {
157157 log .Error ("MailParticipantsComment: %v" , err )
158158 }
159159}
0 commit comments