mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-26 07:51:37 +01:00
Fix display name being displayed instead of domain in remote reports (#31613)
This commit is contained in:
parent
fab29ebbe8
commit
585e369e0b
1 changed files with 4 additions and 12 deletions
|
@ -42,19 +42,11 @@ export const NotificationAdminReport: React.FC<{
|
||||||
|
|
||||||
if (!account || !targetAccount) return null;
|
if (!account || !targetAccount) return null;
|
||||||
|
|
||||||
|
const domain = account.acct.split('@')[1];
|
||||||
|
|
||||||
const values = {
|
const values = {
|
||||||
name: (
|
name: <bdi>{domain ?? `@${account.acct}`}</bdi>,
|
||||||
<bdi
|
target: <bdi>@{targetAccount.acct}</bdi>,
|
||||||
dangerouslySetInnerHTML={{ __html: account.get('display_name_html') }}
|
|
||||||
/>
|
|
||||||
),
|
|
||||||
target: (
|
|
||||||
<bdi
|
|
||||||
dangerouslySetInnerHTML={{
|
|
||||||
__html: targetAccount.get('display_name_html'),
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
),
|
|
||||||
category: intl.formatMessage(messages[report.category]),
|
category: intl.formatMessage(messages[report.category]),
|
||||||
count: report.status_ids.length,
|
count: report.status_ids.length,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue