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

Fix a couple of whoopsy daisies.

parent e9972efc
module Gitlab
module Email
module AttachmentUploader
class AttachmentUploader
attr_accessor :message
def initialize(message)
......
......@@ -76,7 +76,7 @@ module Gitlab
end
def add_attachments(reply)
attachments = AttachmentUploader.new(message).execute(project)
attachments = Email::AttachmentUploader.new(message).execute(sent_notification.project)
attachments.each do |link|
text = "[#{link[:alt]}](#{link[:url]})"
......@@ -84,6 +84,8 @@ module Gitlab
reply << "\n\n#{text}"
end
reply
end
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