Gracefully check reply accounts

This commit is contained in:
Zhiyuan Zheng 2021-03-20 17:51:38 +01:00
parent 6f0a0c43fe
commit ec0faf7e7f
No known key found for this signature in database
GPG Key ID: 078A93AB607D85E0
2 changed files with 5 additions and 5 deletions

View File

@ -141,8 +141,8 @@ const TimelineDefault: React.FC<Props> = ({
([actualStatus.account] as Mastodon.Account[] & Mastodon.Mention[]) ([actualStatus.account] as Mastodon.Account[] & Mastodon.Mention[])
.concat(actualStatus.mentions) .concat(actualStatus.mentions)
.filter(d => d?.id !== instanceAccount?.id), .filter(d => d?.id !== instanceAccount?.id),
d => d.id d => d?.id
).map(d => d.acct)} ).map(d => d?.acct)}
reblog={item.reblog ? true : false} reblog={item.reblog ? true : false}
/> />
)} )}

View File

@ -138,9 +138,9 @@ const TimelineNotifications: React.FC<Props> = ({
([notification.status.account] as Mastodon.Account[] & ([notification.status.account] as Mastodon.Account[] &
Mastodon.Mention[]) Mastodon.Mention[])
.concat(notification.status.mentions) .concat(notification.status.mentions)
.filter(d => d.id !== instanceAccount?.id), .filter(d => d?.id !== instanceAccount?.id),
d => d.id d => d?.id
).map(d => d.acct)} ).map(d => d?.acct)}
reblog={false} reblog={false}
/> />
) : null} ) : null}