From 89f8cd56cbe50cc4a64a1eb94682b4d35b824bd2 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 8 Mar 2024 22:11:33 +0200 Subject: [PATCH] chudrama 3 boost --- files/routes/votes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/votes.py b/files/routes/votes.py index d305e36a6..07b33fb28 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -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