diff options
| author | dave <starpumadev@gmail.com> | 2019-03-17 10:08:01 -0400 |
|---|---|---|
| committer | dave <starpumadev@gmail.com> | 2019-03-17 10:08:01 -0400 |
| commit | 241503346f0c61427c7b3b66700d8cff7c786615 (patch) | |
| tree | f96d6909238e6c458f5e0e3256177af2012e599d /src | |
| parent | e5786f32a70190df04e871d44c48fa43c18cfa11 (diff) | |
#436: clean up based on comment
Diffstat (limited to 'src')
| -rw-r--r-- | src/services/entity_normalizer/entity_normalizer.service.js | 6 |
1 files 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 c31496e8..befc6729 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) |
