diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index e72515747..0caac7371 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -353,24 +353,15 @@ if SITE_NAME == 'rDrama': 'livefilter.com', 'sift.quest', ##lemmy - 'lemmy.world', - 'lemmy.ml', 'beehaw.org', 'sh.itjust.works', 'lemm.ee', 'feddit.de', - 'lemmynsfw.com', - 'lemmy.fmhy.ml', - 'lemmy.ca', 'programming.dev', - 'lemmy.dbzer0.com', - 'lemmy.blahaj.zone', - 'lemmy.one', - 'lemmy.sdf.org', 'discuss.tchncs.de', - 'lemmygrad.ml', 'exploding-heads.com', #+All sites with .win TLD + #+All sites with 'lemmy' in the domain #misc 'cinchnews.com', diff --git a/files/routes/votes.py b/files/routes/votes.py index 2a4cb4fe2..802d83305 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -171,8 +171,9 @@ def vote_post_comment(target_id, new, v, cls, vote_cls): elif target.author.progressivestack or (target.author.admin_level and target.author.id not in {CARP_ID, SCHIZO_ID}): mul = 2 elif SITE == 'rdrama.net' and cls == Post: - if (target.domain.endswith('.win') or 'forum' in target.domain or 'chan' in target.domain - or (target.domain in BOOSTED_SITES and not target.url.startswith('/'))): + if (target.domain.endswith('.win') + or 'forum' in target.domain or 'chan' in target.domain or 'lemmy' in target.domain + or (target.domain in BOOSTED_SITES and not target.url.startswith('/'))): mul = 2 elif target.sub in STEALTH_HOLES: mul = 2