force permachudded posts in chudrama

master
Aevann 2023-06-27 15:02:34 +03:00
parent 19a52f2eb8
commit 2ecd9c4dec
1 changed files with 3 additions and 0 deletions

View File

@ -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):