From 2cdbf9ed5db5aa5516aeaad0630d8c287215accb Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 24 Apr 2023 17:17:12 +0200 Subject: [PATCH] restore autopinning --- files/routes/posts.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/files/routes/posts.py b/files/routes/posts.py index 5f3e62590..75bed62a0 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -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)