forked from rDrama/rDrama
fix 500 erro
parent
998d3456d1
commit
e3fb1b8871
|
@ -142,7 +142,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
|
||||||
if target.author.progressivestack or (cls == Submission and (target.domain.endswith('.win') or target.domain in BOOSTED_SITES)):
|
if target.author.progressivestack or (cls == Submission and (target.domain.endswith('.win') or target.domain in BOOSTED_SITES)):
|
||||||
target.realupvotes *= 2
|
target.realupvotes *= 2
|
||||||
|
|
||||||
if target.sub and target.sub not in ('space', 'istory', 'dinos', 'furry', 'anime', 'slackernews', 'gaybros', 'againsthateholes', 'femboy'):
|
if cls == Submission and target.sub and target.sub not in ('space', 'istory', 'dinos', 'furry', 'anime', 'slackernews', 'gaybros', 'againsthateholes', 'femboy'):
|
||||||
target.realupvotes = int(target.realupvotes * 0.7)
|
target.realupvotes = int(target.realupvotes * 0.7)
|
||||||
|
|
||||||
g.db.add(target)
|
g.db.add(target)
|
||||||
|
|
Loading…
Reference in New Issue