From 71738b05fc3bdbd1e5985dff0bc5e7a7dcfb82b7 Mon Sep 17 00:00:00 2001 From: Snakes Date: Thu, 1 Dec 2022 17:12:57 -0500 Subject: [PATCH] Fix 500 on all non-holed post submissions. --- files/routes/posts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 201fd0c4e..29c90a567 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -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"