dont pin draft posts

pull/225/head
Aevann 2024-02-22 22:22:27 +02:00
parent f481435211
commit 3a3b8c4349
1 changed files with 1 additions and 1 deletions

View File

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