mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 13:51:13 +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 { 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