aboutsummaryrefslogtreecommitdiff
path: root/src/services/entity_normalizer/entity_normalizer.service.js
diff options
context:
space:
mode:
authorkPherox <admin@mail.kr-kp.com>2019-12-10 23:54:28 +0900
committerkPherox <admin@mail.kr-kp.com>2019-12-11 00:00:36 +0900
commit2bc63720a5f9da740fa8082d587b6cfdd0c652ee (patch)
tree870a96aee33e1a6bff49c2d7169404ff683cd4b9 /src/services/entity_normalizer/entity_normalizer.service.js
parente60d9f2d5ae7de753cc9d3e74bd675ec79c9219e (diff)
fix parse for move type notifications
Diffstat (limited to 'src/services/entity_normalizer/entity_normalizer.service.js')
-rw-r--r--src/services/entity_normalizer/entity_normalizer.service.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/services/entity_normalizer/entity_normalizer.service.js b/src/services/entity_normalizer/entity_normalizer.service.js
index ca79df6f..ee007bee 100644
--- a/src/services/entity_normalizer/entity_normalizer.service.js
+++ b/src/services/entity_normalizer/entity_normalizer.service.js
@@ -341,10 +341,13 @@ export const parseNotification = (data) => {
if (masto) {
output.type = mastoDict[data.type] || data.type
output.seen = data.pleroma.is_seen
- output.status = output.type === 'follow'
+ output.status = output.type === 'follow' || output.type === 'move'
? null
: parseStatus(data.status)
output.action = output.status // TODO: Refactor, this is unneeded
+ output.target = output.type !== 'move'
+ ? null
+ : parseUser(data.target)
output.from_profile = parseUser(data.account)
} else {
const parsedNotice = parseStatus(data.notice)