Skip to content

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

DEV: move topic list category outlets outside conditionals (#38620)

chapoi7109a2a58942
diff --git a/frontend/discourse/app/components/topic-list/item/topic-cell.gjs b/frontend/discourse/app/components/topic-list/item/topic-cell.gjs
index 95196298ba2..cb086b74daa 100644
--- a/frontend/discourse/app/components/topic-list/item/topic-cell.gjs
+++ b/frontend/discourse/app/components/topic-list/item/topic-cell.gjs
@@ -93,19 +93,19 @@ export default class TopicCell extends Component {
@name="topic-list-topic-cell-link-bottom-line"
@outletArgs={{lazyHash topic=@topic tagsForUser=@tagsForUser}}
>
+ <PluginOutlet
+ @name="topic-list-before-category"
+ @outletArgs={{lazyHash topic=@topic}}
+ />
{{#unless @hideCategory}}
{{#unless @topic.isPinnedUncategorized}}
- <PluginOutlet
- @name="topic-list-before-category"
- @outletArgs={{lazyHash topic=@topic}}
- />
{{categoryLink @topic.category}}
- <PluginOutlet
- @name="topic-list-after-category"
- @outletArgs={{lazyHash topic=@topic}}
- />
{{/unless}}
{{/unless}}
+ <PluginOutlet
+ @name="topic-list-after-category"
+ @outletArgs={{lazyHash topic=@topic}}
+ />
{{discourseTags @topic mode="list" tagsForUser=@tagsForUser}}