diff options
author | Anton Baklanov <antonbaklanov@gmail.com> | 2015-11-29 22:42:54 +0200 |
---|---|---|
committer | Anton Baklanov <antonbaklanov@gmail.com> | 2015-12-06 01:20:42 +0200 |
commit | caa6851bf5a65e454b702104a2895e63e368a21a (patch) | |
tree | 714a89fb89270b9f45d9aaf9dda36d783cfd211b /app/services | |
parent | 4294d2cdff816642a6e259ce59ce0730bf125ca7 (diff) | |
download | gitlab-ce-caa6851bf5a65e454b702104a2895e63e368a21a.tar.gz |
Fixed duplicated issue note email notifications.
Fixes #2560
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/notification_service.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index 388a4defb26..bdf7b3ad2bb 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -145,6 +145,7 @@ class NotificationService recipients = reject_unsubscribed_users(recipients, note.noteable) recipients.delete(note.author) + recipients = recipients.uniq # build notify method like 'note_commit_email' notify_method = "note_#{note.noteable_type.underscore}_email".to_sym |