From 3aa1554d521c06a1f894d188b8c049265be127db Mon Sep 17 00:00:00 2001 From: Arnaud Ligny Date: Sat, 23 Aug 2025 04:25:32 +0200 Subject: [PATCH] fix: show description if accountId i/o author_name --- .../mastodon/features/status/components/card.jsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/status/components/card.jsx b/app/javascript/mastodon/features/status/components/card.jsx index f8d5a26aff4..7590294e31c 100644 --- a/app/javascript/mastodon/features/status/components/card.jsx +++ b/app/javascript/mastodon/features/status/components/card.jsx @@ -149,7 +149,15 @@ export default class Card extends PureComponent { {card.get('title')} - {!showAuthor && (card.get('author_name').length > 0 ? {card.get('author_name')} }} /> : {card.get('description')})} + {!showAuthor && card.get('author_name').length > 0 ? ( + + {card.get('author_name')} }} /> + + ) : ( + + {card.get('description')} + + )} );