diff --git a/app/assets/javascripts/discourse/app/components/topic-list-item.js b/app/assets/javascripts/discourse/app/components/topic-list-item.js index 7682aafd8df..b4d8b83e4fb 100644 --- a/app/assets/javascripts/discourse/app/components/topic-list-item.js +++ b/app/assets/javascripts/discourse/app/components/topic-list-item.js @@ -11,7 +11,6 @@ import { } from "@ember-decorators/component"; import { observes, on } from "@ember-decorators/object"; import $ from "jquery"; -import { topicTitleDecorators } from "discourse/components/topic-title"; import { wantsNewWindow } from "discourse/lib/intercept-click"; import { applyValueTransformer } from "discourse/lib/transformer"; import DiscourseURL, { groupPath } from "discourse/lib/url"; @@ -128,17 +127,6 @@ export default class TopicListItem extends Component { if (this.includeUnreadIndicator) { this.messageBus.subscribe(this.unreadIndicatorChannel, this.onMessage); } - - schedule("afterRender", () => { - if (this.element && !this.isDestroying && !this.isDestroyed) { - const rawTopicLink = this.element.querySelector(".raw-topic-link"); - - rawTopicLink && - topicTitleDecorators.forEach((cb) => - cb(this.topic, rawTopicLink, "topic-list-item-title") - ); - } - }); } willDestroyElement() { diff --git a/app/assets/javascripts/discourse/app/components/topic-list/item.gjs b/app/assets/javascripts/discourse/app/components/topic-list/item.gjs index 6a9f6a5c0a4..3358544671c 100644 --- a/app/assets/javascripts/discourse/app/components/topic-list/item.gjs +++ b/app/assets/javascripts/discourse/app/components/topic-list/item.gjs @@ -2,7 +2,6 @@ import Component from "@glimmer/component"; import { array, concat, hash } from "@ember/helper"; import { on } from "@ember/modifier"; import { action } from "@ember/object"; -import didInsert from "@ember/render-modifiers/modifiers/did-insert"; import { next } from "@ember/runloop"; import { service } from "@ember/service"; import { modifier } from "ember-modifier"; @@ -12,7 +11,6 @@ import PostCountOrBadges from "discourse/components/topic-list/post-count-or-bad import TopicExcerpt from "discourse/components/topic-list/topic-excerpt"; import TopicLink from "discourse/components/topic-list/topic-link"; import TopicStatus from "discourse/components/topic-status"; -import { topicTitleDecorators } from "discourse/components/topic-title"; import avatar from "discourse/helpers/avatar"; import categoryLink from "discourse/helpers/category-link"; import concatClass from "discourse/helpers/concat-class"; @@ -104,17 +102,6 @@ export default class Item extends Component { event.target.closest(".topic-list-item").classList.remove("selected"); } - @action - applyTitleDecorators(element) { - const rawTopicLink = element.querySelector(".raw-topic-link"); - - if (rawTopicLink) { - topicTitleDecorators?.forEach((cb) => - cb(this.args.topic, rawTopicLink, "topic-list-item-title") - ); - } - } - @action onBulkSelectToggle(e) { if (e.target.checked) { @@ -193,7 +180,6 @@ export default class Item extends Component {