Skip to content

A platform for community discussion. Free, open, simple.

Revert "FIX: adds data-topic-id to quick-access-item (#8422)"

Sam Saffrond10f55c3e93f
diff --git a/app/assets/javascripts/discourse/widgets/quick-access-item.js.es6 b/app/assets/javascripts/discourse/widgets/quick-access-item.js.es6
index a9c27067694..a37200e5956 100644
--- a/app/assets/javascripts/discourse/widgets/quick-access-item.js.es6
+++ b/app/assets/javascripts/discourse/widgets/quick-access-item.js.es6
@@ -33,19 +33,11 @@ createWidget("quick-access-item", {
return result;
},
- html({ href, icon }) {
- let content = this._contentHtml();
-
- let topicId = href.match(/\/t\/.*?\/(\d+)/);
- if (topicId && topicId[1]) {
- topicId = escapeExpression(topicId[1]);
- content = `<span data-topic-id="${topicId}">${content}</span>`;
- }
-
+ html({ icon, href }) {
return h("a", { attributes: { href } }, [
iconNode(icon),
new RawHtml({
- html: `<div>${this._usernameHtml()}${content}</div>`
+ html: `<div>${this._usernameHtml()}${this._contentHtml()}</div>`
})
]);
},