diff --git a/app/assets/javascripts/discourse/dialects/quote_dialect.js b/app/assets/javascripts/discourse/dialects/quote_dialect.js index df299b133..68395103f 100644 --- a/app/assets/javascripts/discourse/dialects/quote_dialect.js +++ b/app/assets/javascripts/discourse/dialects/quote_dialect.js @@ -48,9 +48,10 @@ Discourse.BBCode.register('quote', {noWrap: true, singlePara: true}, function(co if (options.topicId && postNumber && options.getTopicInfo && topicId !== options.topicId) { var topicInfo = options.getTopicInfo(topicId); if (topicInfo) { - header.push(' '); var href = topicInfo.href; if (postNumber > 0) { href += "/" + postNumber; } + // get rid of username said stuff + header.pop(); header.push(['a', {'href': href}, topicInfo.title]); } } diff --git a/spec/components/pretty_text_spec.rb b/spec/components/pretty_text_spec.rb index b62875aff..25c603ef1 100644 --- a/spec/components/pretty_text_spec.rb +++ b/spec/components/pretty_text_spec.rb @@ -13,7 +13,7 @@ describe PrettyText do topic = Fabricate(:topic, title: "this is a test topic") expected = <
HTMLddd