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

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