Skip to content

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

DEV: include expandPinned in topic-list-main-link-bottom outlet (#31334)

Krise5eeb642b9c3
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 7327c235ec4..ea7b460521d 100644
--- a/app/assets/javascripts/discourse/app/components/topic-list/item.gjs
+++ b/app/assets/javascripts/discourse/app/components/topic-list/item.gjs
@@ -335,7 +335,10 @@ export default class Item extends Component {
{{~/if~}}
<PluginOutlet
@name="topic-list-main-link-bottom"
- @outletArgs={{hash topic=@topic}}
+ @outletArgs={{hash
+ topic=@topic
+ expandPinned=this.expandPinned
+ }}
/>
</div>
{{~! no whitespace ~}}
diff --git a/app/assets/javascripts/discourse/app/components/topic-list/item/topic-cell.gjs b/app/assets/javascripts/discourse/app/components/topic-list/item/topic-cell.gjs
index c1c66ae91b3..0c801ab318f 100644
--- a/app/assets/javascripts/discourse/app/components/topic-list/item/topic-cell.gjs
+++ b/app/assets/javascripts/discourse/app/components/topic-list/item/topic-cell.gjs
@@ -136,7 +136,7 @@ export default class TopicCell extends Component {
<PluginOutlet
@name="topic-list-main-link-bottom"
- @outletArgs={{hash topic=@topic}}
+ @outletArgs={{hash topic=@topic expandPinned=@expandPinned}}
/>
</td>
</template>