diff --git a/src/components/status-action-bar.tsx b/src/components/status-action-bar.tsx index 2d7628fd30..31136b4d9c 100644 --- a/src/components/status-action-bar.tsx +++ b/src/components/status-action-bar.tsx @@ -401,7 +401,6 @@ const StatusActionBar: React.FC = ({ const ownAccount = status.account.id === me; const username = status.account.username; const account = status.account; - const domain = account.fqn.split('@')[1]; const menu: Menu = []; @@ -455,6 +454,7 @@ const StatusActionBar: React.FC = ({ } if (features.federating && !account.local) { + const { hostname: domain } = new URL(status.uri); menu.push({ text: intl.formatMessage(messages.external, { domain }), action: handleExternalClick,