Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
dc6b0a8c
Commit
dc6b0a8c
authored
Mar 23, 2017
by
http://jneen.net/
Committed by
Felipe Artur
Apr 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
to backport: factor out send_new_note_notifications
parent
eff10bbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
app/services/notification_service.rb
app/services/notification_service.rb
+4
-0
No files found.
app/services/notification_service.rb
View file @
dc6b0a8c
...
@@ -190,6 +190,10 @@ class NotificationService
...
@@ -190,6 +190,10 @@ class NotificationService
# ignore gitlab service messages
# ignore gitlab service messages
return
true
if
note
.
cross_reference?
&&
note
.
system?
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
notify_method
=
"note_
#{
note
.
to_ability_name
}
_email"
.
to_sym
recipients
=
NotificationRecipientService
.
new
(
note
.
project
).
build_new_note_recipients
(
note
)
recipients
=
NotificationRecipientService
.
new
(
note
.
project
).
build_new_note_recipients
(
note
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment