mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-10-31 17:49:56 +00:00
Prevent videos and embeds from showing if adult consent not accepted (#2436)
This commit is contained in:
parent
d89dc07e71
commit
6fdec8c06e
1 changed files with 4 additions and 0 deletions
|
@ -204,6 +204,10 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
const { post } = this.postView;
|
||||
const { url } = post;
|
||||
|
||||
if (this.isoData.showAdultConsentModal) {
|
||||
return <></>;
|
||||
}
|
||||
|
||||
if (this.imageSrc) {
|
||||
return (
|
||||
<>
|
||||
|
|
Loading…
Reference in a new issue