Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-05-09 17:17:12 +0300
committerYorick Peterse <yorickpeterse@gmail.com>2016-05-11 20:12:32 +0300
commit396c54d6ec0f8c97e443903a46ed4b99572839fd (patch)
tree3ae4672a45c62a81c4efcd2a08b7ea8f44d60def
parent6e62eb01665ca69933600fe977e35cb36804dace (diff)
Set the author when rendering Markdown in Emails
This ensures the UserReferenceFilter can render any links mentioning all project members.
-rw-r--r--app/views/notify/_note_message.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/notify/_note_message.html.haml b/app/views/notify/_note_message.html.haml
index 12ded41fbf2..e9c66170877 100644
--- a/app/views/notify/_note_message.html.haml
+++ b/app/views/notify/_note_message.html.haml
@@ -2,4 +2,4 @@
%div
#{link_to @note.author_name, user_url(@note.author)} wrote:
%div
- = markdown(@note.note, pipeline: :email)
+ = markdown(@note.note, pipeline: :email, author: @note.author)