Commit dc6b0a8c authored by http://jneen.net/'s avatar http://jneen.net/ Committed by Felipe Artur

to backport: factor out send_new_note_notifications

parent eff10bbb
......@@ -190,6 +190,10 @@ class NotificationService
# ignore gitlab service messages
return true if note.cross_reference? && note.system?
send_new_note_notifications(note)
end
def send_new_note_notifications(note)
notify_method = "note_#{note.to_ability_name}_email".to_sym
recipients = NotificationRecipientService.new(note.project).build_new_note_recipients(note)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment