forked from MarseyWorld/MarseyWorld
deboost chudrama since it highly dominates all pages now
parent
b9bd44339b
commit
6004812c20
|
@ -35,7 +35,7 @@ def const_initialize():
|
|||
SNAPPY_KONGS = db.query(Emoji.name).filter(Emoji.kind=="Donkey Kong", Emoji.submitter_id==None, Emoji.nsfw == False).all()
|
||||
SNAPPY_KONGS = [f':#{x[0]}:' for x in SNAPPY_KONGS]
|
||||
|
||||
GIGABOOSTED_HOLES = [x[0] for x in db.query(Hole.name).filter_by(stealth=True)] + ['highrollerclub','countryclub']
|
||||
GIGABOOSTED_HOLES = [x[0] for x in db.query(Hole.name).filter_by(stealth=True)] + ['highrollerclub','countryclub'] - ['chudrama']
|
||||
|
||||
NSFW_EMOJIS = [x[0] for x in db.query(Emoji.name).filter_by(nsfw=True)]
|
||||
|
||||
|
|
|
@ -171,6 +171,8 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
|
|||
if any(i in target.domain for i in ('forum','community','chan','lemmy','mastodon')) \
|
||||
or (target.domain in BOOSTED_SITES and not target.url.startswith('/')):
|
||||
mul = 2
|
||||
elif target.hole == 'chudrama':
|
||||
mul = 2
|
||||
elif target.hole in BOOSTED_HOLES:
|
||||
mul = 1.25
|
||||
|
||||
|
|
Loading…
Reference in New Issue