From 2ecd9c4dece36ba3093d991a0bbb513aed7e8ec6 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 27 Jun 2023 15:02:34 +0300 Subject: [PATCH] force permachudded posts in chudrama --- files/routes/posts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/routes/posts.py b/files/routes/posts.py index 9aa7c3cb0..813689187 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -461,6 +461,9 @@ def submit_post(v:User, sub=None): sub = request.values.get("sub", "").lower().replace('/h/','').strip() + if SITE_NAME == 'rDrama' and v.chud == 1: + sub = 'chudrama' + title_html = filter_emojis_only(title, graceful=True, count_emojis=True) if v.marseyawarded and not marseyaward_title_regex.fullmatch(title_html):