From eafa7b8e0556b460bcf6ebb0248f9e1a8bb61e70 Mon Sep 17 00:00:00 2001 From: TLSM Date: Tue, 25 Oct 2022 11:32:32 -0400 Subject: [PATCH] Revert "this is stupid": no fighting in the commit log. This reverts commit 1f1ace3d664698ca50c4effb9c35da53341c4dc3. --- files/routes/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index f1d5cc9dc..915a49069 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1121,7 +1121,8 @@ def remove_post(post_id, v): post = get_post(post_id) post.is_banned = True post.is_approved = None - post.stickied = None + if post.stickied and not post.stickied.endswith('(pin award)'): + post.stickied = None post.is_pinned = False post.ban_reason = v.username g.db.add(post)