From 42992084872a74cfe6be2b56b35cf3d3cfa69c9f Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Mon, 24 Jul 2023 23:01:31 +0200 Subject: [PATCH] Fix `lang` for UI texts in link preview (#26149) --- .../mastodon/features/status/components/card.jsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/javascript/mastodon/features/status/components/card.jsx b/app/javascript/mastodon/features/status/components/card.jsx index dcc699e38..29a12c87b 100644 --- a/app/javascript/mastodon/features/status/components/card.jsx +++ b/app/javascript/mastodon/features/status/components/card.jsx @@ -156,9 +156,12 @@ export default class Card extends PureComponent { const language = card.get('language') || ''; const description = ( -
- {provider}{card.get('published_at') && <> · } - {card.get('title')} +
+ + {provider} + {card.get('published_at') && <> · } + + {card.get('title')} {card.get('author_name').length > 0 && {card.get('author_name')} }} />}
);