sneed
parent
0f984b121a
commit
e96274308a
|
@ -1694,8 +1694,6 @@ if SITE_NAME == 'rDrama':
|
|||
JOAN_ID,
|
||||
}
|
||||
|
||||
BOOSTED_USERS_EXCLUDED = {8768, 5214, 12719, 3402}
|
||||
|
||||
IMAGE_FORMATS = ['png','gif','jpg','jpeg','webp']
|
||||
VIDEO_FORMATS = ['mp4','webm','mov','avi','mkv','flv','m4v','3gp']
|
||||
AUDIO_FORMATS = ['mp3','wav','ogg','aac','m4a','flac']
|
||||
|
|
|
@ -150,7 +150,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
|
|||
elif cls == Submission:
|
||||
if target.domain.endswith('.win') or (target.domain in BOOSTED_SITES and not target.url.startswith('/')) or target.sub in BOOSTED_HOLES:
|
||||
mul = 2
|
||||
elif not target.sub and target.body_html and target.author.id not in BOOSTED_USERS_EXCLUDED:
|
||||
elif not target.sub and target.body_html and target.author.id not in {8768, 5214, 12719, 3402}:
|
||||
x = target.body_html.count('" target="_blank" rel="nofollow noopener">')
|
||||
x += target.body_html.count('<a href="/images/')
|
||||
target.realupvotes += min(x*2, 20)
|
||||
|
|
Loading…
Reference in New Issue