From 0c5ddeb1f7ad2c798bdb513fbaa1ab6b053c7ee2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 23 Jun 2022 03:03:28 +0200 Subject: [PATCH] make me autovote on all posts in subs --- 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 50f63e080..b9c0ae3ee 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1216,7 +1216,7 @@ def submit_post(v, sub=None): post.upvotes += 3 g.db.add(post) - if request.host == 'rdrama.net' and post.sub == 'slackernews' and v.id != AEVANN_ID: + if request.host == 'rdrama.net' and post.sub and v.id != AEVANN_ID: g.db.commit() autovote = Vote(user_id=AEVANN_ID, submission_id=post.id, vote_type=1) g.db.add(autovote)