summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Bug.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-08-14 14:28:31 +0200
committerGitHub <noreply@github.com>2018-08-14 14:28:31 +0200
commitec87e5310ad038abe4b2b329897638d866bf549a (patch)
tree08a5486b897f5321a4aafd04f1afbec19ca597d9 /Bugzilla/WebService/Bug.pm
parentea5beeacb185309572836cc60989f95ea4705f9d (diff)
downloadbugzilla-ec87e5310ad038abe4b2b329897638d866bf549a.tar.gz
bugzilla-ec87e5310ad038abe4b2b329897638d866bf549a.tar.xz
Revert "Bug 1456878 - Support markdown comments"
Diffstat (limited to 'Bugzilla/WebService/Bug.pm')
-rw-r--r--Bugzilla/WebService/Bug.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm
index d14300f6f..feb541c2e 100644
--- a/Bugzilla/WebService/Bug.pm
+++ b/Bugzilla/WebService/Bug.pm
@@ -362,7 +362,7 @@ sub render_comment {
Bugzilla->switch_to_shadow_db();
my $bug = $params->{id} ? Bugzilla::Bug->check($params->{id}) : undef;
- my $html = Bugzilla::Template::renderComment($params->{text}, $bug);
+ my $html = Bugzilla::Template::quoteUrls($params->{text}, $bug);
return { html => $html };
}
@@ -381,7 +381,6 @@ sub _translate_comment {
time => $self->type('dateTime', $comment->creation_ts),
creation_time => $self->type('dateTime', $comment->creation_ts),
is_private => $self->type('boolean', $comment->is_private),
- is_markdown => $self->type('boolean', $comment->is_markdown),
text => $self->type('string', $comment->body_full),
attachment_id => $self->type('int', $attach_id),
count => $self->type('int', $comment->count),
@@ -1113,11 +1112,9 @@ sub add_comment {
if (defined $params->{private}) {
$params->{is_private} = delete $params->{private};
}
-
# Append comment
$bug->add_comment($comment, { isprivate => $params->{is_private},
- work_time => $params->{work_time},
- is_markdown => 1 });
+ work_time => $params->{work_time} });
# Add comment tags
$bug->set_all({ comment_tags => $params->{comment_tags} })