mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 06:36:17 +00:00
Prevent videos and embeds from showing if adult consent not accepted (#2436)
This commit is contained in:
parent
d89dc07e71
commit
6fdec8c06e
|
@ -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