From 241503346f0c61427c7b3b66700d8cff7c786615 Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 17 Mar 2019 10:08:01 -0400 Subject: [PATCH] #436: clean up based on comment --- src/services/entity_normalizer/entity_normalizer.service.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/services/entity_normalizer/entity_normalizer.service.js b/src/services/entity_normalizer/entity_normalizer.service.js index c31496e854..befc6729ac 100644 --- a/src/services/entity_normalizer/entity_normalizer.service.js +++ b/src/services/entity_normalizer/entity_normalizer.service.js @@ -251,13 +251,12 @@ export const parseStatus = (data) => { return output } +// This is for masto API only. export const parseFollow = (data) => { const output = {} output.id = String(data.id) output.visibility = true output.created_at = new Date(data.created_at) - - // Converting to string, the right way. output.user = parseUser(data.account) return output @@ -273,8 +272,7 @@ export const parseNotification = (data) => { if (masto) { output.type = mastoDict[data.type] || data.type - - output.seen = null // missing + // output.seen = ??? missing output.status = output.type === 'follow' ? parseFollow(data) : parseStatus(data.status)