Merge branch 'fix-mentions' into 'develop'

Fix mentions

Closes #1449

See merge request soapbox-pub/soapbox!2584
This commit is contained in:
Alex Gleason 2023-06-30 15:13:55 +00:00
commit f7e82e2fc1

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;
}