From 9656c9b96919f17647adda80ba187a4f5b2299e1 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Mon, 18 Jan 2021 15:54:12 -0600 Subject: [PATCH] Support old user.deactivated and new user.is_active fields --- src/services/entity_normalizer/entity_normalizer.service.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/entity_normalizer/entity_normalizer.service.js b/src/services/entity_normalizer/entity_normalizer.service.js index 625f593ea9..a199ebd040 100644 --- a/src/services/entity_normalizer/entity_normalizer.service.js +++ b/src/services/entity_normalizer/entity_normalizer.service.js @@ -188,7 +188,9 @@ export const parseUser = (data) => { output.follow_request_count = data.pleroma.follow_request_count 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.unread_chat_count = data.pleroma.unread_chat_count