# RTEでの引用の帰属表示時にユーザー名ではなくフルネームを表示する

**URL:** https://meta.discourse.org/t/display-full-name-not-username-when-attributing-quote-in-rte/397049
**Category:** Bug
**Tags:** composer
**Created:** [2026 年 2 月 25 日午後 8:51 UTC](https://meta.discourse.org/t/display-full-name-not-username-when-attributing-quote-in-rte/397049 "2026-02-25T20:51:29Z")
**Posts on this page:** 1
**Showing post:** 16

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2026 年 2 月 26 日午前 10:08 UTC](https://meta.discourse.org/t/display-full-name-not-username-when-attributing-quote-in-rte/397049/16 "2026-02-26T10:08:17Z")

</div>

素晴らしい仕事です @Moin、原因究明お疲れ様でした 👏

おかげで修正が100倍簡単になりました 👍

> <https://github.com/discourse/discourse/pull/38078>
>
> When \`display\_name\_on\_posts\` is enabled and \`prioritize\_username\_in\_ux\` is disab…led, quoting a post in markdown mode correctly attributes the quote to the user's full name (e.g. \`\[quote="Robin Ward, post:1, topic:2, username:eviltrout"\]\`). However, the rich text editor lost the display name during the markdown→ProseMirror→markdown round-trip, falling back to just the username.
> 
> The ProseMirror quote node only stored \`username\` in its attributes. When BBCode with a \`username:\` param was parsed, the display name was discarded. On serialization, only the username survived.
> 
> This commit:
> \- Adds a \`displayName\` attribute to the ProseMirror quote node spec
> \- Emits \`data-display-name\` on the markdown-it aside token so the ProseMirror parser can pick it up
> \- Updates the serializer to output the display name and \`username:\` param when present
> \- Fixes a latent issue where \`displayName\` remained as an array instead of being joined into a string when the name contains no commas
> 
> https://meta.discourse.org/t/397049/12

---

_[View the full topic](https://meta.discourse.org/t/display-full-name-not-username-when-attributing-quote-in-rte/397049)._
