|
|
@ -7,6 +7,7 @@ import RelativeTimestamp from './relative_timestamp'; |
|
|
|
import DisplayName from './display_name'; |
|
|
|
import DisplayName from './display_name'; |
|
|
|
import StatusContent from './status_content'; |
|
|
|
import StatusContent from './status_content'; |
|
|
|
import StatusActionBar from './status_action_bar'; |
|
|
|
import StatusActionBar from './status_action_bar'; |
|
|
|
|
|
|
|
import AttachmentList from './attachment_list'; |
|
|
|
import { FormattedMessage } from 'react-intl'; |
|
|
|
import { FormattedMessage } from 'react-intl'; |
|
|
|
import ImmutablePureComponent from 'react-immutable-pure-component'; |
|
|
|
import ImmutablePureComponent from 'react-immutable-pure-component'; |
|
|
|
import { MediaGallery, Video } from '../features/ui/util/async-components'; |
|
|
|
import { MediaGallery, Video } from '../features/ui/util/async-components'; |
|
|
@ -179,7 +180,12 @@ export default class Status extends ImmutablePureComponent { |
|
|
|
|
|
|
|
|
|
|
|
if (status.get('media_attachments').size > 0 && !this.props.muted) { |
|
|
|
if (status.get('media_attachments').size > 0 && !this.props.muted) { |
|
|
|
if (status.get('media_attachments').some(item => item.get('type') === 'unknown')) { |
|
|
|
if (status.get('media_attachments').some(item => item.get('type') === 'unknown')) { |
|
|
|
|
|
|
|
media = ( |
|
|
|
|
|
|
|
<AttachmentList |
|
|
|
|
|
|
|
compact |
|
|
|
|
|
|
|
media={status.get('media_attachments')} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
); |
|
|
|
} else if (status.getIn(['media_attachments', 0, 'type']) === 'video') { |
|
|
|
} else if (status.getIn(['media_attachments', 0, 'type']) === 'video') { |
|
|
|
const video = status.getIn(['media_attachments', 0]); |
|
|
|
const video = status.getIn(['media_attachments', 0]); |
|
|
|
|
|
|
|
|
|
|
|