MentionNode: show the username, not the full acct

environments/review-nostr-ment-bugkb8/deployments/4172
Alex Gleason 11 months ago
parent 964ba8c758
commit 5aacfe299a
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -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…
Cancel
Save