summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2018-12-20 15:25:31 +0100
committerDouwe Maan <douwe@selenight.nl>2018-12-20 16:40:51 +0100
commit34611f0dcded00b6878e72e07b45c416a0533b81 (patch)
tree1091b2757fd47b355f8e9706d1448737e755df8d /app/views
parent047b7e506e2603f33ecf14fea43969ccb2954a82 (diff)
downloadgitlab-ce-34611f0dcded00b6878e72e07b45c416a0533b81.tar.gz
Don't include diff lines in image diff note notification email
Diffstat (limited to 'app/views')
-rw-r--r--app/views/notify/_note_email.text.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/notify/_note_email.text.erb b/app/views/notify/_note_email.text.erb
index 4bf252b6ce1..50209c46ed1 100644
--- a/app/views/notify/_note_email.text.erb
+++ b/app/views/notify/_note_email.text.erb
@@ -20,7 +20,7 @@
<% end -%>
-<% if discussion&.diff_discussion? -%>
+<% if discussion&.diff_discussion? && discussion.on_text? -%>
<% discussion.truncated_diff_lines(highlight: false, diff_limit: diff_limit).each do |line| -%>
<%= "> #{line.text}\n" -%>
<% end -%>