From 5a286b5e7a343b5653fe01b8fd91229308f488fb Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 7 Nov 2021 16:59:48 +0200 Subject: [PATCH] fdfd --- files/routes/posts.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 365ff7cdfc..f2f714ba91 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -23,8 +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': snappyquotes = [x for x in snappyquotes if 'drama' not in x] @app.post("/toggle_club/") @auth_required @@ -864,7 +863,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 new_post.url: + if "rama" in request.host or "pcmemes.net" in request.host or new_post.url: new_post.comment_count = 1 g.db.add(new_post)