|
|
@ -477,6 +477,7 @@ class Audio extends PureComponent {
|
|
|
|
const progress = Math.min((currentTime / duration) * 100, 100);
|
|
|
|
const progress = Math.min((currentTime / duration) * 100, 100);
|
|
|
|
|
|
|
|
|
|
|
|
let warning;
|
|
|
|
let warning;
|
|
|
|
|
|
|
|
|
|
|
|
if (sensitive) {
|
|
|
|
if (sensitive) {
|
|
|
|
warning = <FormattedMessage id='status.sensitive_warning' defaultMessage='Sensitive content' />;
|
|
|
|
warning = <FormattedMessage id='status.sensitive_warning' defaultMessage='Sensitive content' />;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -522,7 +523,10 @@ class Audio extends PureComponent {
|
|
|
|
|
|
|
|
|
|
|
|
<div className={classNames('spoiler-button', { 'spoiler-button--hidden': revealed || editable })}>
|
|
|
|
<div className={classNames('spoiler-button', { 'spoiler-button--hidden': revealed || editable })}>
|
|
|
|
<button type='button' className='spoiler-button__overlay' onClick={this.toggleReveal}>
|
|
|
|
<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>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|