Skip to content

Commit

Permalink
[Glitch] Fix display name being displayed instead of domain in remote…
Browse files Browse the repository at this point in the history
… reports

Port 585e369 to glitch-soc

Signed-off-by: Claire <[email protected]>
  • Loading branch information
ClearlyClaire committed Sep 4, 2024
1 parent 1d86377 commit 1fb31ad
Showing 1 changed file with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,11 @@ export const NotificationAdminReport: React.FC<{

if (!account || !targetAccount) return null;

const domain = account.acct.split('@')[1];

const values = {
name: (
<bdi
dangerouslySetInnerHTML={{ __html: account.get('display_name_html') }}
/>
),
target: (
<bdi
dangerouslySetInnerHTML={{
__html: targetAccount.get('display_name_html'),
}}
/>
),
name: <bdi>{domain ?? `@${account.acct}`}</bdi>,
target: <bdi>@{targetAccount.acct}</bdi>,
category: intl.formatMessage(messages[report.category]),
count: report.status_ids.length,
};
Expand Down

0 comments on commit 1fb31ad

Please sign in to comment.