Apply 1 suggestion(s) to 1 file(s)
This commit is contained in:
parent
36e56354e4
commit
831cf9eafb
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue