|
|
|
@ -94,6 +94,12 @@ export default class MediaItem extends ImmutablePureComponent { |
|
|
|
|
|
|
|
|
|
if (attachment.get('type') === 'unknown') { |
|
|
|
|
// Skip
|
|
|
|
|
} else if (attachment.get('type') === 'audio') { |
|
|
|
|
thumbnail = ( |
|
|
|
|
<span className='account-gallery__item__icons'> |
|
|
|
|
<i className='fa fa-music' /> |
|
|
|
|
</span> |
|
|
|
|
); |
|
|
|
|
} else if (attachment.get('type') === 'image') { |
|
|
|
|
const focusX = attachment.getIn(['meta', 'focus', 'x']) || 0; |
|
|
|
|
const focusY = attachment.getIn(['meta', 'focus', 'y']) || 0; |
|
|
|
|