pl-fe: remove duplicate code
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
59f4138f4f
commit
f542796da5
2 changed files with 0 additions and 4 deletions
|
@ -26,7 +26,6 @@ const normalizeAccount = (account: BaseAccount) => {
|
||||||
|
|
||||||
const fqn = account.fqn || guessFqn(account);
|
const fqn = account.fqn || guessFqn(account);
|
||||||
const domain = fqn.split('@')[1] || '';
|
const domain = fqn.split('@')[1] || '';
|
||||||
const note = account.note === '<p></p>' ? '' : account.note;
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
mute_expires_at: null,
|
mute_expires_at: null,
|
||||||
|
@ -37,7 +36,6 @@ const normalizeAccount = (account: BaseAccount) => {
|
||||||
header_static: account.header_static || account.header || missingHeader,
|
header_static: account.header_static || account.header || missingHeader,
|
||||||
fqn,
|
fqn,
|
||||||
domain,
|
domain,
|
||||||
note,
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -139,8 +139,6 @@ const normalizeStatus = (status: BaseStatus & {
|
||||||
mentions,
|
mentions,
|
||||||
expanded: null,
|
expanded: null,
|
||||||
hidden: null,
|
hidden: null,
|
||||||
/** Rewrite `<p></p>` to empty string. */
|
|
||||||
content: status.content === '<p></p>' ? '' : status.content,
|
|
||||||
filtered: status.filtered?.map(result => result.filter.title),
|
filtered: status.filtered?.map(result => result.filter.title),
|
||||||
event,
|
event,
|
||||||
group,
|
group,
|
||||||
|
|
Loading…
Reference in a new issue