From f542796da509a7eb4bd7bc992224247d13ec5ff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 27 Oct 2024 17:39:48 +0100 Subject: [PATCH] pl-fe: remove duplicate code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/normalizers/account.ts | 2 -- packages/pl-fe/src/normalizers/status.ts | 2 -- 2 files changed, 4 deletions(-) diff --git a/packages/pl-fe/src/normalizers/account.ts b/packages/pl-fe/src/normalizers/account.ts index 9ee10a773..e7661285f 100644 --- a/packages/pl-fe/src/normalizers/account.ts +++ b/packages/pl-fe/src/normalizers/account.ts @@ -26,7 +26,6 @@ const normalizeAccount = (account: BaseAccount) => { const fqn = account.fqn || guessFqn(account); const domain = fqn.split('@')[1] || ''; - const note = account.note === '

' ? '' : account.note; return { mute_expires_at: null, @@ -37,7 +36,6 @@ const normalizeAccount = (account: BaseAccount) => { header_static: account.header_static || account.header || missingHeader, fqn, domain, - note, }; }; diff --git a/packages/pl-fe/src/normalizers/status.ts b/packages/pl-fe/src/normalizers/status.ts index a151b486b..9c2c5ebc7 100644 --- a/packages/pl-fe/src/normalizers/status.ts +++ b/packages/pl-fe/src/normalizers/status.ts @@ -139,8 +139,6 @@ const normalizeStatus = (status: BaseStatus & { mentions, expanded: null, hidden: null, - /** Rewrite `

` to empty string. */ - content: status.content === '

' ? '' : status.content, filtered: status.filtered?.map(result => result.filter.title), event, group,