forked from rDrama/rDrama
1
0
Fork 0

add BOOSTED_USERS

master
Aevann1 2022-11-09 22:53:20 +02:00
parent 0c48d4c7e2
commit d85ac23c3c
2 changed files with 5 additions and 1 deletions

View File

@ -1614,6 +1614,10 @@ BOOSTED_HOLES = {
'masterbaiters',
}
BOOSTED_USERS = {
5800, #Impassionata
}
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']

View File

@ -145,7 +145,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
if target.author.progressivestack:
mul = 2
elif cls == Submission:
if target.domain.endswith('.win') or target.domain in BOOSTED_SITES or target.sub in BOOSTED_HOLES:
if target.domain.endswith('.win') or target.domain in BOOSTED_SITES or target.sub in BOOSTED_HOLES or target.author.id in BOOSTED_USERS:
mul = 2
elif target.sub:
mul = 0.7