pl-fe: remove duplicate code

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-10-27 17:39:48 +01:00
parent 59f4138f4f
commit f542796da5
2 changed files with 0 additions and 4 deletions

View file

@ -26,7 +26,6 @@ const normalizeAccount = (account: BaseAccount) => {
const fqn = account.fqn || guessFqn(account);
const domain = fqn.split('@')[1] || '';
const note = account.note === '<p></p>' ? '' : 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,
};
};

View file

@ -139,8 +139,6 @@ const normalizeStatus = (status: BaseStatus & {
mentions,
expanded: null,
hidden: null,
/** Rewrite `<p></p>` to empty string. */
content: status.content === '<p></p>' ? '' : status.content,
filtered: status.filtered?.map(result => result.filter.title),
event,
group,