forked from rDrama/rDrama
fix for 96163b17bb
parent
17c3fe9e4c
commit
d7de4f923a
|
@ -1265,7 +1265,7 @@ def submit_post(v, sub=None):
|
||||||
post.upvotes += 3
|
post.upvotes += 3
|
||||||
g.db.add(post)
|
g.db.add(post)
|
||||||
|
|
||||||
if post.sub:
|
if post.sub and AEVANN_ID:
|
||||||
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)
|
||||||
v.coins += 1
|
v.coins += 1
|
||||||
|
|
Loading…
Reference in New Issue