fix parse for move type notifications

This commit is contained in:
kPherox 2019-12-10 23:54:28 +09:00
parent e60d9f2d5a
commit 2bc63720a5
No known key found for this signature in database
GPG key ID: C04751C2BFA2F62D
3 changed files with 10 additions and 3 deletions

View file

@ -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)