メンションの表示を @usernamefieldhere ではなく @fullnamefieldhere に変更するにはどうすればよいでしょうか。
例えば、@OverseersMight が @John Doe のように表示されるようにしたいです(私の名前が John Doe の場合)。
ごめんなさい、John へのメンションは意図したものではありませんでした…。
Don
2021 年 8 月 22 日午前 4:45
2
こんにちは、
現在、Discourse にはそのようなオプションはありませんが、以下のトピックが役立つかもしれません:
It would look more elegent in posts if @leo (for example) was presented as (or at least the user had the option to present it as) “Leo” or “Leo McArdle”.
pfaffman
(Jay Pfaffman)
2021 年 8 月 22 日午後 1:17
3
ユーザー名を使いたくないのであれば、ユーザー名を「first_last」と同じにするプラグインを導入すべきだと思います。
このプラグインへのリンクはありますか、@pfaffman ?私もこれを見つけました:
@nachof I found a way to make it work: https://gist.github.com/jessicah/cd580bab64d89875a157579789b03511 by overriding _show() in component:user-card-contents. I’m guessing the leading underscore means we probably shouldn’t override it? But it seems to work: [image]
Perhaps there needs to be an entry point to optionally get the username from $target? Anyway, this was really a blocker from my POV to deploying to my wider community. Time to roll ahead
これも機能しているようです。
このコミュニティにこれほど素晴らしい貢献をしてくださり、ありがとうございます。
pfaffman
(Jay Pfaffman)
2021 年 8 月 22 日午後 9:07
5
わあ、かっこいいですね。存在しないプラグインを必要としないため、私の案よりも良い解決策です。Ember や JavaScript を使った解決策を考えるのは、私はあまり得意ではありません。よくできました!