Prevent videos and embeds from showing if adult consent not accepted (#2436)

This commit is contained in:
SleeplessOne1917 2024-04-24 03:02:14 +00:00 committed by GitHub
parent d89dc07e71
commit 6fdec8c06e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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 (
<>