Add lang
attribute to media and poll options (#23891)
This commit is contained in:
committed by
GitHub
parent
730bb3e211
commit
d3eefead30
@@ -139,6 +139,7 @@ class DetailedStatus extends ImmutablePureComponent {
|
||||
<Audio
|
||||
src={attachment.get('url')}
|
||||
alt={attachment.get('description')}
|
||||
lang={status.get('language')}
|
||||
duration={attachment.getIn(['meta', 'original', 'duration'], 0)}
|
||||
poster={attachment.get('preview_url') || status.getIn(['account', 'avatar_static'])}
|
||||
backgroundColor={attachment.getIn(['meta', 'colors', 'background'])}
|
||||
@@ -161,6 +162,7 @@ class DetailedStatus extends ImmutablePureComponent {
|
||||
blurhash={attachment.get('blurhash')}
|
||||
src={attachment.get('url')}
|
||||
alt={attachment.get('description')}
|
||||
lang={status.get('language')}
|
||||
width={300}
|
||||
height={150}
|
||||
inline
|
||||
@@ -176,6 +178,7 @@ class DetailedStatus extends ImmutablePureComponent {
|
||||
standalone
|
||||
sensitive={status.get('sensitive')}
|
||||
media={status.get('media_attachments')}
|
||||
lang={status.get('language')}
|
||||
height={300}
|
||||
onOpenMedia={this.props.onOpenMedia}
|
||||
visible={this.props.showMedia}
|
||||
|
Reference in New Issue
Block a user