Merge branch 'patch-4' into 'develop'
Fix audio plus other attachments when there's more than one attachment on detailed status See merge request soapbox-pub/soapbox-fe!91
This commit is contained in:
commit
015c9559dd
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
|
||||||
onToggleVisibility={this.props.onToggleMediaVisibility}
|
onToggleVisibility={this.props.onToggleMediaVisibility}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
} else if (status.getIn(['media_attachments', 0, 'type']) === 'audio') {
|
} else if (status.getIn(['media_attachments', 0, 'type']) === 'audio' && status.get('media_attachments').size === 1) {
|
||||||
const audio = status.getIn(['media_attachments', 0]);
|
const audio = status.getIn(['media_attachments', 0]);
|
||||||
|
|
||||||
media = (
|
media = (
|
||||||
|
|
Loading…
Reference in a new issue