Merge remote-tracking branch 'parent/main' into upstream-20230103
This commit is contained in:
commit
7356f776f2
60 changed files with 1349 additions and 323 deletions
|
@ -15,6 +15,7 @@ export default class MediaAttachments extends ImmutablePureComponent {
|
|||
lang: PropTypes.string,
|
||||
height: PropTypes.number,
|
||||
width: PropTypes.number,
|
||||
visible: PropTypes.bool,
|
||||
};
|
||||
|
||||
static defaultProps = {
|
||||
|
@ -51,7 +52,7 @@ export default class MediaAttachments extends ImmutablePureComponent {
|
|||
};
|
||||
|
||||
render () {
|
||||
const { status, width, height } = this.props;
|
||||
const { status, width, height, visible } = this.props;
|
||||
const mediaAttachments = status.get('media_attachments');
|
||||
const language = status.getIn(['language', 'translation']) || status.get('language') || this.props.lang;
|
||||
|
||||
|
@ -99,6 +100,7 @@ export default class MediaAttachments extends ImmutablePureComponent {
|
|||
height={height}
|
||||
inline
|
||||
sensitive={status.get('sensitive')}
|
||||
visible={visible}
|
||||
onOpenVideo={noop}
|
||||
/>
|
||||
)}
|
||||
|
@ -113,6 +115,7 @@ export default class MediaAttachments extends ImmutablePureComponent {
|
|||
lang={language}
|
||||
sensitive={status.get('sensitive')}
|
||||
defaultWidth={width}
|
||||
visible={visible}
|
||||
height={height}
|
||||
onOpenMedia={noop}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue