diff --git a/app/javascript/mastodon/components/status/attachments.tsx b/app/javascript/mastodon/components/status/attachments.tsx index 841546da7c5..8c7db1b73fe 100644 --- a/app/javascript/mastodon/components/status/attachments.tsx +++ b/app/javascript/mastodon/components/status/attachments.tsx @@ -413,6 +413,10 @@ const LinkCard: React.FC<{ card: CardShape; status: ExpandedStatusShape }> = ({ rel: 'noopener', } as const; + const authors = card.authors + .map(({ accountId }) => accountId) + .filter((id): id is string => !!id); + return ( = ({ )} - {card.authors.length > 0 && ( + {authors.length > 0 && ( - {card.authors.map(({ accountId }) => ( + {authors.map((accountId) => ( ))}