|
|
@ -131,14 +131,14 @@ export default class DetailedStatus extends ImmutablePureComponent {
|
|
|
|
} else if (status.get('media_attachments').size > 0) {
|
|
|
|
} else if (status.get('media_attachments').size > 0) {
|
|
|
|
if (status.get('media_attachments').some(item => item.get('type') === 'unknown')) {
|
|
|
|
if (status.get('media_attachments').some(item => item.get('type') === 'unknown')) {
|
|
|
|
media = <AttachmentList media={status.get('media_attachments')} />;
|
|
|
|
media = <AttachmentList media={status.get('media_attachments')} />;
|
|
|
|
} else if (status.getIn(['media_attachments', 0, 'type']) === 'video') {
|
|
|
|
} else if (['video', 'audio'].includes(status.getIn(['media_attachments', 0, 'type']))) {
|
|
|
|
const video = status.getIn(['media_attachments', 0]);
|
|
|
|
const attachment = status.getIn(['media_attachments', 0]);
|
|
|
|
media = (
|
|
|
|
media = (
|
|
|
|
<Video
|
|
|
|
<Video
|
|
|
|
preview={video.get('preview_url')}
|
|
|
|
preview={attachment.get('preview_url')}
|
|
|
|
blurhash={video.get('blurhash')}
|
|
|
|
blurhash={attachment.get('blurhash')}
|
|
|
|
src={video.get('url')}
|
|
|
|
src={attachment.get('url')}
|
|
|
|
alt={video.get('description')}
|
|
|
|
alt={attachment.get('description')}
|
|
|
|
inline
|
|
|
|
inline
|
|
|
|
sensitive={status.get('sensitive')}
|
|
|
|
sensitive={status.get('sensitive')}
|
|
|
|
letterbox={settings.getIn(['media', 'letterbox'])}
|
|
|
|
letterbox={settings.getIn(['media', 'letterbox'])}
|
|
|
|