mirror of https://github.com/tooot-app/app
Gracefully check reply accounts
This commit is contained in:
parent
6f0a0c43fe
commit
ec0faf7e7f
|
@ -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}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue