Fix quoted audio
This commit is contained in:
parent
55d2f6b791
commit
c5300b0df4
@ -508,10 +508,14 @@ class Status extends ImmutablePureComponent {
|
|||||||
<Component
|
<Component
|
||||||
src={attachment.get('url')}
|
src={attachment.get('url')}
|
||||||
alt={attachment.get('description')}
|
alt={attachment.get('description')}
|
||||||
|
poster={attachment.get('preview_url') || quote_status.getIn(['account', 'avatar_static'])}
|
||||||
|
backgroundColor={attachment.getIn(['meta', 'colors', 'background'])}
|
||||||
|
foregroundColor={attachment.getIn(['meta', 'colors', 'foreground'])}
|
||||||
|
accentColor={attachment.getIn(['meta', 'colors', 'accent'])}
|
||||||
duration={attachment.getIn(['meta', 'original', 'duration'], 0)}
|
duration={attachment.getIn(['meta', 'original', 'duration'], 0)}
|
||||||
peaks={[0]}
|
width={this.props.cachedMediaWidth}
|
||||||
height={70}
|
height={70}
|
||||||
quote
|
cacheWidth={this.props.cacheMediaWidth}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Bundle>
|
</Bundle>
|
||||||
|
@ -152,8 +152,11 @@ class DetailedStatus extends ImmutablePureComponent {
|
|||||||
src={attachment.get('url')}
|
src={attachment.get('url')}
|
||||||
alt={attachment.get('description')}
|
alt={attachment.get('description')}
|
||||||
duration={attachment.getIn(['meta', 'original', 'duration'], 0)}
|
duration={attachment.getIn(['meta', 'original', 'duration'], 0)}
|
||||||
|
poster={attachment.get('preview_url') || quote_status.getIn(['account', 'avatar_static'])}
|
||||||
|
backgroundColor={attachment.getIn(['meta', 'colors', 'background'])}
|
||||||
|
foregroundColor={attachment.getIn(['meta', 'colors', 'foreground'])}
|
||||||
|
accentColor={attachment.getIn(['meta', 'colors', 'accent'])}
|
||||||
height={60}
|
height={60}
|
||||||
preload
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
} else if (quote_status.getIn(['media_attachments', 0, 'type']) === 'video') {
|
} else if (quote_status.getIn(['media_attachments', 0, 'type']) === 'video') {
|
||||||
|
Loading…
Reference in New Issue
Block a user