Hide sensitive preview cards with blurhash (#13985)
* Use preview card blurhash in WebUI * Handle sensitive preview cards
This commit is contained in:
parent
a3f22bd4ca
commit
8e96510b25
6 changed files with 105 additions and 13 deletions
|
@ -153,7 +153,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
|
|||
);
|
||||
}
|
||||
} else if (status.get('spoiler_text').length === 0) {
|
||||
media = <Card onOpenMedia={this.props.onOpenMedia} card={status.get('card', null)} />;
|
||||
media = <Card sensitive={status.get('sensitive')} onOpenMedia={this.props.onOpenMedia} card={status.get('card', null)} />;
|
||||
}
|
||||
|
||||
if (status.get('application')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue