StatusActionBar: get external domain from status.uri instead of fqn
This commit is contained in:
parent
5176d8b23e
commit
2c9bdf03a4
1 changed files with 1 additions and 1 deletions
|
@ -401,7 +401,6 @@ const StatusActionBar: React.FC<IStatusActionBar> = ({
|
|||
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<IStatusActionBar> = ({
|
|||
}
|
||||
|
||||
if (features.federating && !account.local) {
|
||||
const { hostname: domain } = new URL(status.uri);
|
||||
menu.push({
|
||||
text: intl.formatMessage(messages.external, { domain }),
|
||||
action: handleExternalClick,
|
||||
|
|
Loading…
Reference in a new issue