Normalize Pleroma account location
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
ac55adfcb3
commit
40b5761460
1 changed files with 2 additions and 1 deletions
|
@ -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>) => {
|
const normalizeLocation = (account: ImmutableMap<string, any>) => {
|
||||||
return account.update('location', location => {
|
return account.update('location', location => {
|
||||||
return [
|
return [
|
||||||
location,
|
location,
|
||||||
|
account.getIn(['pleroma', 'location']),
|
||||||
account.getIn(['other_settings', 'location']),
|
account.getIn(['other_settings', 'location']),
|
||||||
].find(Boolean);
|
].find(Boolean);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue