MentionNode: show the username, not the full acct
This commit is contained in:
parent
964ba8c758
commit
5aacfe299a
1 changed files with 2 additions and 1 deletions
|
@ -76,6 +76,7 @@ class MentionNode extends DecoratorNode<JSX.Element> {
|
|||
|
||||
decorate(): JSX.Element {
|
||||
const acct = this.__acct;
|
||||
const username = acct.split('@')[0];
|
||||
|
||||
return (
|
||||
<button
|
||||
|
@ -84,7 +85,7 @@ class MentionNode extends DecoratorNode<JSX.Element> {
|
|||
title={`@${acct}`}
|
||||
dir='ltr'
|
||||
>
|
||||
@{acct}
|
||||
@{username}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue