# No se puede montar el "post-avatar" en la salida del plugin "topic-above-post-stream"

**URL:** <https://meta.discourse.org/t/cannot-mount-the-post-avatar-on-the-topic-above-post-stream-plugin-outlet/269430>\
**Category:** Development\
**Created:** [23 Junio, 2023 16:47 UTC](https://meta.discourse.org/t/cannot-mount-the-post-avatar-on-the-topic-above-post-stream-plugin-outlet/269430 "2023-06-23T16:47:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [23 Junio, 2023 17:10 UTC](https://meta.discourse.org/t/cannot-mount-the-post-avatar-on-the-topic-above-post-stream-plugin-outlet/269430/2 "2023-06-23T17:10:01Z")

</div>

Es probable que te falten atributos que el widget requiere para mostrar… por ejemplo, ¿cómo sabe para qué usuario quieres mostrar el avatar en este contexto?

Mirando el widget original aquí:

> <https://github.com/discourse/discourse/blob/96a2893284ed5488bbeb93463e40ed5b53084dd0/app/assets/javascripts/discourse/app/widgets/post.js#L195>

espera:

- template
- username
- name
- url

Así que tendrías que obtener los datos que quieres en tu plugin outlet, luego pasarlos al widget… algo como

```hbs
{{mount-widget widget="post-avatar" args=(hash username=this.username)}}

```

dicho esto… ¿qué intentas lograr más específicamente? si solo quieres mostrar un avatar, usar el helper de avatar podría ser una mejor manera de hacerlo… eso se vería así:

```hbs
{{avatar user imageSize="large"}}

```

en este caso, todavía necesitarías asegurarte de que `user` esté presente, porque así es como sabe qué usuario mostrar.

---

_[View the full topic](https://meta.discourse.org/t/cannot-mount-the-post-avatar-on-the-topic-above-post-stream-plugin-outlet/269430)._
