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
tl-language-filters
Alex Gleason 2020-07-03 00:29:06 +00:00
commit 015c9559dd
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -121,7 +121,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
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]);
media = (