From 23b4fdf616b75685368ddcf32901ebd476af11b6 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 14 Nov 2021 04:31:03 +0200 Subject: [PATCH] sdfdsf --- files/routes/posts.py | 4 ++-- files/templates/submission.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 6c6efa00a..d45dd29c5 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -23,7 +23,7 @@ CATBOX_KEY = environ.get("CATBOX_KEY").strip() with open("snappy.txt", "r") as f: snappyquotes = f.read().split("{[para]}") -if site == 'pcmemes.net': snappyquotes = [x for x in snappyquotes if 'drama' not in x] +if site == 'pcmemes.net' or site == 'ashithole.com': snappyquotes = [x for x in snappyquotes if 'drama' not in x.lower()] @app.post("/toggle_club/") @auth_required @@ -865,7 +865,7 @@ def submit_post(v): n = Notification(comment_id=c_jannied.id, user_id=v.id) g.db.add(n) - if "rama" in request.host or "pcmemes.net" in request.host or new_post.url: + if "rama" in request.host or "pcmemes.net" in request.host or "shithole" in request.host or new_post.url: new_post.comment_count = 1 g.db.add(new_post) diff --git a/files/templates/submission.html b/files/templates/submission.html index 9df0019c0..81855311c 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -124,7 +124,7 @@ {% endif %} -{% if 'rama' not in request.host %} +{% if 'rama' not in request.host and 'pcmemes' not in request.host and 'shithole' not in request.host %}