Normalize Pleroma account location

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
remove-makegetotheraccounts
marcin mikołajczak 2022-03-14 22:55:55 +01:00
rodzic ac55adfcb3
commit 40b5761460
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -132,11 +132,12 @@ const normalizeVerified = (account: ImmutableMap<string, any>) => {
});
};
// Normalize Fedibird/Truth Social location
// Normalize Fedibird/Truth Social/Pleroma location
const normalizeLocation = (account: ImmutableMap<string, any>) => {
return account.update('location', location => {
return [
location,
account.getIn(['pleroma', 'location']),
account.getIn(['other_settings', 'location']),
].find(Boolean);
});