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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
03b54f1f
Commit
03b54f1f
authored
Aug 19, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix responding to commit notes
parent
76dbafba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
app/mailers/notify.rb
app/mailers/notify.rb
+14
-4
No files found.
app/mailers/notify.rb
View file @
03b54f1f
...
@@ -49,11 +49,21 @@ class Notify < ActionMailer::Base
...
@@ -49,11 +49,21 @@ class Notify < ActionMailer::Base
def
sent_notification!
(
noteable
,
recipient_id
)
def
sent_notification!
(
noteable
,
recipient_id
)
return
unless
reply_key
return
unless
reply_key
noteable_id
=
nil
commit_id
=
nil
if
noteable
.
is_a?
(
Commit
)
commit_id
=
noteable
.
id
else
noteable_id
=
noteable
.
id
end
SentNotification
.
create
(
SentNotification
.
create
(
project:
noteable
.
project
,
project:
noteable
.
project
,
noteable:
noteable
,
noteable_type:
noteable
.
class
.
name
,
recipient_id:
recipient_id
,
noteable_id:
noteable_id
,
reply_key:
reply_key
commit_id:
commit_id
,
recipient_id:
recipient_id
,
reply_key:
reply_key
)
)
end
end
...
...
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