From 22b9452f7a454896408a2e7fdad12eb45c87d8c2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 16 Nov 2021 05:19:06 +0200 Subject: [PATCH] fdsfsd --- files/routes/comments.py | 2 +- files/routes/posts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index df7ca3eeed..a9ee4b0c26 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -255,7 +255,7 @@ def api_comment(v): parent_submission=parent_submission, parent_comment_id=parent_comment_id, level=level, - over_18=parent_post.over_18 or request.values.get("over_18","")=="true", + over_18=request.host == 'pcmemes.net' and v.id == 1578 or parent_post.over_18 or request.values.get("over_18","")=="true", is_bot=is_bot, app_id=v.client.application.id if v.client else None, body_html=body_html, diff --git a/files/routes/posts.py b/files/routes/posts.py index dcada47528..dc22cd8af4 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -698,7 +698,7 @@ def submit_post(v): private=bool(request.values.get("private","")), club=club, author_id=v.id, - over_18=bool(request.values.get("over_18","")), + over_18=request.host == 'pcmemes.net' and v.id == 1578 or bool(request.values.get("over_18","")), app_id=v.client.application.id if v.client else None, is_bot = request.headers.get("Authorization"), url=url,