From 3a3b8c434955f5000e2be046e5bb8507f2f4306d Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 22 Feb 2024 22:22:27 +0200 Subject: [PATCH] dont pin draft posts --- 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 43f1ac604..9a405f274 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -711,7 +711,7 @@ def submit_post(v, hole=None): v.post_count += 1 g.db.add(v) - if v.id in PINNED_POSTS_IDS and not p.ghost and not (p.hole and p.hole_obj.stealth): + if v.id in PINNED_POSTS_IDS and not p.ghost and not p.draft and not (p.hole and p.hole_obj.stealth): p.pinned_utc = time.time() + PINNED_POSTS_IDS[v.id] * 3600 p.pinned = "AutoJanny"