Support old user.deactivated and new user.is_active fields
This commit is contained in:
parent
fe78ed78fd
commit
9656c9b969
1 changed files with 3 additions and 1 deletions
|
@ -188,7 +188,9 @@ export const parseUser = (data) => {
|
||||||
output.follow_request_count = data.pleroma.follow_request_count
|
output.follow_request_count = data.pleroma.follow_request_count
|
||||||
|
|
||||||
output.tags = data.pleroma.tags
|
output.tags = data.pleroma.tags
|
||||||
output.deactivated = data.pleroma.deactivated
|
// deactivated was changed to is_active in Pleroma 2.3.0
|
||||||
|
// backwards compatability kept for now
|
||||||
|
output.deactivated = data.pleroma.deactivated ? !data.pleroma.is_active : data.pleroma.deactivated
|
||||||
|
|
||||||
output.notification_settings = data.pleroma.notification_settings
|
output.notification_settings = data.pleroma.notification_settings
|
||||||
output.unread_chat_count = data.pleroma.unread_chat_count
|
output.unread_chat_count = data.pleroma.unread_chat_count
|
||||||
|
|
Loading…
Reference in a new issue