diff --git a/app/assets/javascripts/discourse/models/topic.js.coffee b/app/assets/javascripts/discourse/models/topic.js.coffee index dd95bd26bf7..8ee310c4ce1 100644 --- a/app/assets/javascripts/discourse/models/topic.js.coffee +++ b/app/assets/javascripts/discourse/models/topic.js.coffee @@ -69,13 +69,6 @@ Discourse.Topic = Discourse.Model.extend Discourse.Presence, ).property('new_posts', 'id') - displayTitle: (-> - return null unless @get('title') - return @get('title') unless @get('category') - matches = @get('title').match(/^([a-zA-Z0-9]+\: )?(.*)/) - return matches[2] - ).property('title') - # The coldmap class for the age of the topic ageCold: (-> return unless lastPost = @get('last_posted_at') diff --git a/app/assets/javascripts/discourse/templates/topic.js.handlebars b/app/assets/javascripts/discourse/templates/topic.js.handlebars index df9ff98681c..add9aec92ba 100644 --- a/app/assets/javascripts/discourse/templates/topic.js.handlebars +++ b/app/assets/javascripts/discourse/templates/topic.js.handlebars @@ -17,7 +17,7 @@

{{#if view.topic.title}} {{view Discourse.TopicStatusView topicBinding="view.topic"}} - {{unbound view.topic.displayTitle}} + {{unbound view.topic.title}} {{else}} {{#if view.topic.missing}} {{i18n topic.not_found.title}} diff --git a/app/assets/javascripts/discourse/templates/topic_extra_info.js.handlebars b/app/assets/javascripts/discourse/templates/topic_extra_info.js.handlebars index 6697e2320b0..148223e6af5 100644 --- a/app/assets/javascripts/discourse/templates/topic_extra_info.js.handlebars +++ b/app/assets/javascripts/discourse/templates/topic_extra_info.js.handlebars @@ -5,7 +5,7 @@

{{#if view.topic.title}} {{view Discourse.TopicStatusView topicBinding="view.topic"}} - {{view Discourse.AutoSizedTextView tagName="span" class="auto-sizer" contentBinding="view.topic.displayTitle"}} + {{view Discourse.AutoSizedTextView tagName="span" class="auto-sizer" contentBinding="view.topic.title"}} {{else}} {{#if view.topic.missing}} {{i18n topic.not_found.title}}