Add warning for sensitive audio posts (#17885)
This commit is contained in:
parent
03f19b8cd3
commit
e6979aa6d4
4 changed files with 71 additions and 8 deletions
|
@ -138,7 +138,11 @@ class DetailedStatus extends ImmutablePureComponent {
|
|||
backgroundColor={attachment.getIn(['meta', 'colors', 'background'])}
|
||||
foregroundColor={attachment.getIn(['meta', 'colors', 'foreground'])}
|
||||
accentColor={attachment.getIn(['meta', 'colors', 'accent'])}
|
||||
sensitive={status.get('sensitive')}
|
||||
visible={this.props.showMedia}
|
||||
blurhash={attachment.get('blurhash')}
|
||||
height={150}
|
||||
onToggleVisibility={this.props.onToggleMediaVisibility}
|
||||
/>
|
||||
);
|
||||
} else if (status.getIn(['media_attachments', 0, 'type']) === 'video') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue