Existe uma maneira recomendada de obter o nome de usuário atual a partir de uma postagem?

Yes. The post record has the username in it (see https://meta.discourse.org/t/is-there-a-recommended-way-to-get-the-current-username-from-a-post/178288.json).

You can create a theme component that would add your link as a plugin outlet. See Developer’s guide to Discourse Themes for some hints.

2 curtidas