From 3308734dc777829a2f88c45d52c5c65f64b2bdd9 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 1 Dec 2022 18:22:33 +0200 Subject: [PATCH] dont auto-pin if post sub is stealthed --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index e8d3b7a5b..f135af435 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -924,7 +924,7 @@ def submit_post(v:User, sub=None): execute_lawlz_actions(v, post) - if SITE == 'rdrama.net' and v.id in (IMPASSIONATA_ID, PIZZASHILL_ID, 2008): + if SITE == 'rdrama.net' and not post.sub.stealth and v.id in (IMPASSIONATA_ID, PIZZASHILL_ID, 2008): post.stickied_utc = int(time.time()) + 3600 post.stickied = "AutoJanny"