Merge branch 'pleroma-location' into 'develop'

Normalize Pleroma account location

See merge request soapbox-pub/soapbox-fe!1097
remove-makegetotheraccounts
Alex Gleason 2022-03-14 22:13:01 +00:00
commit 6a6a7b614d
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);
});