diff options
Diffstat (limited to 'app/services/notification_service.rb')
-rw-r--r-- | app/services/notification_service.rb | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index 85113d3ca22..4ff462191fe 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -353,7 +353,7 @@ class NotificationService issue = note.noteable support_bot = User.support_bot - return unless issue.service_desk_reply_to.present? + return unless issue.external_author.present? return unless issue.project.service_desk_enabled? return if note.author == support_bot return unless issue.subscribed?(support_bot, issue.project) @@ -380,6 +380,10 @@ class NotificationService end end + def user_admin_rejection(name, email) + mailer.user_admin_rejection_email(name, email).deliver_later + end + # Members def new_access_request(member) return true unless member.notifiable?(:subscription) @@ -500,6 +504,16 @@ class NotificationService end end + def issue_cloned(issue, new_issue, current_user) + recipients = NotificationRecipients::BuildService.build_recipients(issue, current_user, action: 'cloned') + + recipients.map do |recipient| + email = mailer.issue_cloned_email(recipient.user, issue, new_issue, current_user, recipient.reason) + email.deliver_later + email + end + end + def project_exported(project, current_user) return true unless notifiable?(current_user, :mention, project: project) |