mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2024-11-09 01:49:14 +00:00
Apply 1 suggestion(s) to 1 file(s)
This commit is contained in:
parent
36e56354e4
commit
831cf9eafb
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ export const parseUser = (data) => {
|
|||
|
||||
// deactivated was changed to is_active in Pleroma 2.3.0
|
||||
// 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.deactivated // old backend
|
||||
|
||||
|
|
Loading…
Reference in a new issue