From: Jeong Arm Date: Sat, 28 May 2022 13:50:36 +0000 (+0900) Subject: [Glitch] Add lang html attr to each posts X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=9069ef475fb248c9841161e4c14e901d9cfa8103;p=mastodon.git [Glitch] Add lang html attr to each posts Port dc7e2985e60c90e8efe82e56edb4fdd473bd1651 to glitch-soc Signed-off-by: Claire --- diff --git a/app/javascript/flavours/glitch/components/status_content.js b/app/javascript/flavours/glitch/components/status_content.js index 1d32b35e5..6a027f8d2 100644 --- a/app/javascript/flavours/glitch/components/status_content.js +++ b/app/javascript/flavours/glitch/components/status_content.js @@ -267,6 +267,7 @@ export default class StatusContent extends React.PureComponent { const content = { __html: status.get('contentHtml') }; const spoilerContent = { __html: status.get('spoilerHtml') }; + const lang = status.get('language'); const classNames = classnames('status__content', { 'status__content--with-action': parseClick && !disabled, 'status__content--with-spoiler': status.get('spoiler_text').length > 0, @@ -327,7 +328,7 @@ export default class StatusContent extends React.PureComponent {