Skip to content

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

DEV: Add topic-list-item-mobile-avatar wrapper outlet (#30743)

David Taylor461dcf44d055
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 9566621b182..d4982cfd4c6 100644
--- a/app/assets/javascripts/discourse/app/components/topic-list/item.gjs
+++ b/app/assets/javascripts/discourse/app/components/topic-list/item.gjs
@@ -234,14 +234,19 @@ export default class Item extends Component {
/>
</label>
{{else}}
- <a
- href={{@topic.lastPostUrl}}
- aria-label={{i18n
- "latest_poster_link"
- }}
- data-user-card={{@topic.lastPosterUser.username}}
- >{{avatar @topic.lastPosterUser imageSize="large"}}</a>
+ <PluginOutlet
+ @name="topic-list-item-mobile-avatar"
+ @outletArgs={{hash topic=@topic}}
+ >
+ <a
+ href={{@topic.lastPostUrl}}
+ aria-label={{i18n
+ "latest_poster_link"
+ }}
+ data-user-card={{@topic.lastPosterUser.username}}
+ >{{avatar @topic.lastPosterUser imageSize="large"}}</a>
+ </PluginOutlet>
{{/if}}
</div>