make me autovote on all posts in subs

master
Aevann1 2022-06-23 03:03:28 +02:00
parent 78b31df5c2
commit 0c5ddeb1f7
1 changed files with 1 additions and 1 deletions

View File

@ -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)