From bac7154bc6025f97aabd66421880e0766d2a585d Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 17 Jan 2019 23:53:05 +0300 Subject: [PATCH] more fields for users --- .../entity_normalizer.service.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/services/entity_normalizer/entity_normalizer.service.js b/src/services/entity_normalizer/entity_normalizer.service.js index 7321a1b3..a5931f17 100644 --- a/src/services/entity_normalizer/entity_normalizer.service.js +++ b/src/services/entity_normalizer/entity_normalizer.service.js @@ -58,6 +58,15 @@ export const parseUser = (data) => { output.statusnet_profile_url = data.url + // FIXME missing + output.follows_you = null + + // FIXME ??????? + output.statusnet_blocking = false + + // FIXME missing + output.muted = null + // Missing, trying to recover output.is_local = !output.screen_name.includes('@') } else { @@ -79,8 +88,15 @@ export const parseUser = (data) => { output.bot = null // missing output.statusnet_profile_url = data.statusnet_profile_url + + output.statusnet_blocking = data.statusnet_blocking + output.is_local = data.is_local + output.follows_you = data.follows_you + + output.muted = data.muted + // QVITTER ONLY FOR NOW // Really only applies to logged in user, really.. I THINK output.rights = data.rights