From 4cda6d11e0cef228dbf2c801e22d3acbdfe9617a 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 df7ca3eee..a9ee4b0c2 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 dcada4752..dc22cd8af 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,