forked from rDrama/rDrama
special logic redux (#76)
Co-authored-by: justcool393 <justcool393@gmail.com> Reviewed-on: rDrama/rDrama#76 Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net> Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>master
parent
82f34d0cab
commit
7aa10b9d1b
|
@ -555,7 +555,7 @@ def submit_post(v:User, sub=None):
|
||||||
if len(title_html) > POST_TITLE_HTML_LENGTH_LIMIT:
|
if len(title_html) > POST_TITLE_HTML_LENGTH_LIMIT:
|
||||||
return error("Rendered title is too big!")
|
return error("Rendered title is too big!")
|
||||||
|
|
||||||
if sub != "chudrama" and v.id == 253: # 2022-12-15: special logic by request
|
if sub != "chudrama" and v.id == 253 and SITE == 'rdrama.net': # 2022-12-15: special logic by request
|
||||||
sub = "chudrama"
|
sub = "chudrama"
|
||||||
|
|
||||||
if sub == 'changelog' and not v.admin_level >= PERMS['POST_TO_CHANGELOG']:
|
if sub == 'changelog' and not v.admin_level >= PERMS['POST_TO_CHANGELOG']:
|
||||||
|
|
Loading…
Reference in New Issue