Commit 0b401f2e authored by Douwe Maan's avatar Douwe Maan

Fix a couple of whoopsy daisies.

parent e9972efc
module Gitlab module Gitlab
module Email module Email
module AttachmentUploader class AttachmentUploader
attr_accessor :message attr_accessor :message
def initialize(message) def initialize(message)
......
...@@ -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)
......
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