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
Léo-Paul Géneau
gitlab-ce
Commits
0b401f2e
Commit
0b401f2e
authored
Aug 20, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple of whoopsy daisies.
parent
e9972efc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
lib/gitlab/email/attachment_uploader.rb
lib/gitlab/email/attachment_uploader.rb
+1
-1
lib/gitlab/email/receiver.rb
lib/gitlab/email/receiver.rb
+3
-1
No files found.
lib/gitlab/email/attachment_uploader.rb
View file @
0b401f2e
module
Gitlab
module
Gitlab
module
Email
module
Email
module
AttachmentUploader
class
AttachmentUploader
attr_accessor
:message
attr_accessor
:message
def
initialize
(
message
)
def
initialize
(
message
)
...
...
lib/gitlab/email/receiver.rb
View file @
0b401f2e
...
@@ -76,7 +76,7 @@ module Gitlab
...
@@ -76,7 +76,7 @@ module Gitlab
end
end
def
add_attachments
(
reply
)
def
add_attachments
(
reply
)
attachments
=
AttachmentUploader
.
new
(
message
).
execute
(
project
)
attachments
=
Email
::
AttachmentUploader
.
new
(
message
).
execute
(
sent_notification
.
project
)
attachments
.
each
do
|
link
|
attachments
.
each
do
|
link
|
text
=
"[
#{
link
[
:alt
]
}
](
#{
link
[
:url
]
}
)"
text
=
"[
#{
link
[
:alt
]
}
](
#{
link
[
:url
]
}
)"
...
@@ -84,6 +84,8 @@ module Gitlab
...
@@ -84,6 +84,8 @@ module Gitlab
reply
<<
"
\n\n
#{
text
}
"
reply
<<
"
\n\n
#{
text
}
"
end
end
reply
end
end
def
create_note
(
reply
)
def
create_note
(
reply
)
...
...
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