Fix 500 on all non-holed post submissions.

pull/36/head
Snakes 2022-12-01 17:12:57 -05:00
parent 0f2f72f2c3
commit 71738b05fc
Signed by: Snakes
GPG Key ID: E745A82778055C7E
1 changed files with 3 additions and 1 deletions

View File

@ -923,7 +923,9 @@ def submit_post(v:User, sub=None):
execute_lawlz_actions(v, post)
if SITE == 'rdrama.net' and not post.sub.stealth and v.id in (IMPASSIONATA_ID, PIZZASHILL_ID, 2008):
if (SITE == 'rdrama.net'
and v.id in (IMPASSIONATA_ID, PIZZASHILL_ID, 2008)
and not (post.sub and post.sub.stealth)):
post.stickied_utc = int(time.time()) + 3600
post.stickied = "AutoJanny"