From 40b5761460a2c190cb9824e1d4f4384659c9964d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Mon, 14 Mar 2022 22:55:55 +0100 Subject: [PATCH] Normalize Pleroma account location MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/normalizers/account.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/soapbox/normalizers/account.ts b/app/soapbox/normalizers/account.ts index 7faa3282c..98f895aa8 100644 --- a/app/soapbox/normalizers/account.ts +++ b/app/soapbox/normalizers/account.ts @@ -132,11 +132,12 @@ const normalizeVerified = (account: ImmutableMap) => { }); }; -// Normalize Fedibird/Truth Social location +// Normalize Fedibird/Truth Social/Pleroma location const normalizeLocation = (account: ImmutableMap) => { return account.update('location', location => { return [ location, + account.getIn(['pleroma', 'location']), account.getIn(['other_settings', 'location']), ].find(Boolean); });