forked from rDrama/rDrama
1
0
Fork 0

restore autopinning

master
Aevann 2023-04-24 17:17:12 +02:00
parent a37fca393d
commit 2cdbf9ed5d
1 changed files with 6 additions and 0 deletions

View File

@ -698,6 +698,12 @@ def submit_post(v:User, sub=None):
execute_lawlz_actions(v, p)
if (SITE == 'rdrama.net'
and v.id in {TGTW_ID, SNALLY_ID}
and not (p.sub and p.subr.stealth)) and p.sub != 'slavshit':
p.stickied_utc = int(time.time()) + 3600
p.stickied = "AutoJanny"
cache.delete_memoized(frontlist)
cache.delete_memoized(userpagelisting)