# Discourse 在提及中显示全名

**URL:** <https://meta.discourse.org/t/discourse-show-fullname-in-mentions/216319>\
**Category:** Theme component\
**Created:** [2022 年1 月 28 日 14:51 UTC](https://meta.discourse.org/t/discourse-show-fullname-in-mentions/216319 "2022-01-28T14:51:12Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

作者： ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)\
发布日期： [2023 年9 月 9 日 06:14 UTC](https://meta.discourse.org/t/discourse-show-fullname-in-mentions/216319/4 "2023-09-09T06:14:25Z")

</div>

> [@ImaCrea](#):
>
> 这是发生的情况：我有一个用户，他的用户名是“oli44”，全名是“Henri Oliver”。使用您的插件后，它现在显示“Henri Oliver”，这很好，增加了更好的上下文。但是，假设我是另一个不知道“Henri Oliver”使用用户名“oli44”的用户，那么我该如何在帖子中提及他？

您只需输入“@”后跟“Henri Oliver”。确认后，@+用户名将插入到您的帖子中。

搜索时，用户名和全名都会显示。  
问题出在哪里？

> [@ImaCrea](#):
>
> 或者也许您的主题组件仍然可以显示用户名（例如：“@Henri Oliver (oli44)”），这样当我需要提及该人时，我就知道要查找什么？

您可以在 fork 中轻松自定义渲染：

> <https://github.com/thoka/discourse-show-name-mentions/commit/003b64369c196f71fb76d4e6d8f81f46f4cc2672>

---

_[View the full topic](https://meta.discourse.org/t/discourse-show-fullname-in-mentions/216319)._
