Fix mentions

This commit is contained in:
Alex Gleason 2023-06-30 09:45:11 -05:00
parent 5ffaaa4c3a
commit 6326eeb083
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ const isValid = (notification: APIEntity) => {
}
// Mastodon can return status notifications with a null status
if (['mention', 'reblog', 'favourite', 'poll', 'status'].includes(notification.type) && !notification.status.id) {
if (['mention', 'reblog', 'favourite', 'poll', 'status'].includes(notification.type) && !notification.getIn(['status', 'id'])) {
return false;
}