mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 14:45:20 +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 { post } = this.postView;
|
||||||
const { url } = post;
|
const { url } = post;
|
||||||
|
|
||||||
|
if (this.isoData.showAdultConsentModal) {
|
||||||
|
return <></>;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.imageSrc) {
|
if (this.imageSrc) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
Loading…
Reference in a new issue