dont auto-pin if post sub is stealthed

pull/36/head
Aevann1 2022-12-01 18:22:33 +02:00
parent acd4a61232
commit 3308734dc7
1 changed files with 1 additions and 1 deletions

View File

@ -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"