From fc59615e303744a5933b293c96f78f962bee68bf Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 29 Sep 2023 04:25:14 +0300 Subject: [PATCH] unpin deleted comments --- files/routes/comments.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/routes/comments.py b/files/routes/comments.py index 4846ceec8..76bb59448 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -439,7 +439,10 @@ def delete_comment(cid, v): c = get_comment(cid, v=v) if not c.deleted_utc: if c.author_id != v.id: abort(403) + c.deleted_utc = int(time.time()) + c.stickied = None + c.stickied_utc = None g.db.add(c) if not (c.parent_post in ADMIGGER_THREADS and c.level == 1):