From a37e6cc50f79bca45f0508a41cc4f64d2a521ba2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 2 Jul 2022 12:03:10 +0200 Subject: [PATCH] upvote more holes --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 55dcec8d2..646d53c23 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1207,7 +1207,7 @@ def submit_post(v, sub=None): post.upvotes += 3 g.db.add(post) - if request.host == 'rdrama.net' and post.sub in ('slackernews','space') and v.id != AEVANN_ID: + if request.host == 'rdrama.net' and post.sub and post.sub not in ('dankchristianmemes','fatpeoplehate','braincels','truth') and v.id != AEVANN_ID: g.db.flush() autovote = Vote(user_id=AEVANN_ID, submission_id=post.id, vote_type=1) g.db.add(autovote)