chudrama 3 boost

pull/225/head
Aevann 2024-03-08 22:11:33 +02:00
parent da3090b8ba
commit 89f8cd56cb
1 changed files with 3 additions and 3 deletions

View File

@ -168,11 +168,11 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
elif SITE == 'rdrama.net' and 6 <= datetime.fromtimestamp(target.created_utc).hour <= 10:
mul = 2
elif SITE == 'rdrama.net' and cls == Post:
if any(i in target.domain for i in ('forum','community','chan','lemmy','mastodon')) \
if target.hole == 'chudrama':
mul = 3
elif 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