Apply 1 suggestion(s) to 1 file(s)

This commit is contained in:
feld 2021-01-20 16:04:49 +00:00 committed by Mark Felder
parent 36e56354e4
commit 831cf9eafb

View File

@ -191,7 +191,7 @@ export const parseUser = (data) => {
// deactivated was changed to is_active in Pleroma 2.3.0 // deactivated was changed to is_active in Pleroma 2.3.0
// so check if is_active is present // so check if is_active is present
output.deactivated = typeof data.pleroma.is_active !== undefined output.deactivated = typeof data.pleroma.is_active !== 'undefined'
? !data.pleroma.is_active // new backend ? !data.pleroma.is_active // new backend
: data.pleroma.deactivated // old backend : data.pleroma.deactivated // old backend