|
|
|
@ -470,6 +470,7 @@ class Audio extends PureComponent {
|
|
|
|
|
const progress = Math.min((currentTime / duration) * 100, 100);
|
|
|
|
|
|
|
|
|
|
let warning;
|
|
|
|
|
|
|
|
|
|
if (sensitive) {
|
|
|
|
|
warning = <FormattedMessage id='status.sensitive_warning' defaultMessage='Sensitive content' />;
|
|
|
|
|
} else {
|
|
|
|
@ -515,7 +516,10 @@ class Audio extends PureComponent {
|
|
|
|
|
|
|
|
|
|
<div className={classNames('spoiler-button', { 'spoiler-button--hidden': revealed || editable })}>
|
|
|
|
|
<button type='button' className='spoiler-button__overlay' onClick={this.toggleReveal}>
|
|
|
|
|
<span className='spoiler-button__overlay__label'>{warning}</span>
|
|
|
|
|
<span className='spoiler-button__overlay__label'>
|
|
|
|
|
{warning}
|
|
|
|
|
<span className='spoiler-button__overlay__action'><FormattedMessage id='status.media.show' defaultMessage='Click to show' /></span>
|
|
|
|
|
</span>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|