From 5aacfe299a9f67dd3cfd8af591c5841fc181e86d Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 13 Oct 2023 17:22:45 -0500 Subject: [PATCH] MentionNode: show the username, not the full acct --- src/features/compose/editor/nodes/mention-node.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/features/compose/editor/nodes/mention-node.tsx b/src/features/compose/editor/nodes/mention-node.tsx index 5e86bee015..cb8cbe538a 100644 --- a/src/features/compose/editor/nodes/mention-node.tsx +++ b/src/features/compose/editor/nodes/mention-node.tsx @@ -76,6 +76,7 @@ class MentionNode extends DecoratorNode { decorate(): JSX.Element { const acct = this.__acct; + const username = acct.split('@')[0]; return ( ); }