From fd850e00db835d2b84c59014c3b1021fea2294fc Mon Sep 17 00:00:00 2001 From: Israel Madueme Date: Fri, 10 Aug 2018 08:57:01 -0400 Subject: Bug 1456878 - Support markdown comments --- attachment.cgi | 2 ++ 1 file changed, 2 insertions(+) (limited to 'attachment.cgi') diff --git a/attachment.cgi b/attachment.cgi index 875de6a50..4aeba58c5 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -600,6 +600,7 @@ sub insert { my $comment = $cgi->param('comment'); $comment = '' unless defined $comment; $bug->add_comment($comment, { isprivate => $attachment->isprivate, + is_markdown => 1, type => CMT_ATTACHMENT_CREATED, extra_data => $attachment->id }); @@ -745,6 +746,7 @@ sub update { my $comment = $cgi->param('comment'); if (defined $comment && trim($comment) ne '') { $bug->add_comment($comment, { isprivate => $attachment->isprivate, + is_markdown => 1, type => CMT_ATTACHMENT_UPDATED, extra_data => $attachment->id }); } -- cgit v1.2.3-24-g4f1b