forked from MarseyWorld/MarseyWorld
revert autoupvoting posts
parent
4e067579d5
commit
69d247c433
|
@ -1216,16 +1216,6 @@ def submit_post(v, sub=None):
|
|||
post.upvotes += 3
|
||||
g.db.add(post)
|
||||
|
||||
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)
|
||||
v.coins += 1
|
||||
v.truecoins += 1
|
||||
g.db.add(v)
|
||||
post.upvotes += 1
|
||||
g.db.add(post)
|
||||
|
||||
g.db.commit()
|
||||
|
||||
cache.delete_memoized(frontlist)
|
||||
|
|
Loading…
Reference in New Issue