forked from rDrama/rDrama
make me autovote on all posts in subs
parent
78b31df5c2
commit
0c5ddeb1f7
|
@ -1216,7 +1216,7 @@ def submit_post(v, sub=None):
|
||||||
post.upvotes += 3
|
post.upvotes += 3
|
||||||
g.db.add(post)
|
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()
|
g.db.commit()
|
||||||
autovote = Vote(user_id=AEVANN_ID, submission_id=post.id, vote_type=1)
|
autovote = Vote(user_id=AEVANN_ID, submission_id=post.id, vote_type=1)
|
||||||
g.db.add(autovote)
|
g.db.add(autovote)
|
||||||
|
|
Loading…
Reference in New Issue