From 1469ace2fcbcc07618a4fd110435ac6f5a39c3e6 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 19 Jan 2024 07:54:37 +0200 Subject: [PATCH] under siege --- files/helpers/actions.py | 2 +- files/routes/comments.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/files/helpers/actions.py b/files/helpers/actions.py index 73fa41060..fa4d50f4e 100644 --- a/files/helpers/actions.py +++ b/files/helpers/actions.py @@ -527,7 +527,7 @@ def execute_under_siege(v, target, body, kind): if kind in {'message', 'report'} and SITE == 'rdrama.net': threshold = 86400 - elif kind == 'post' and SITE == 'watchpeopledie.tv': + elif kind != 'normal_comment' and SITE == 'watchpeopledie.tv': threshold = 86400 else: threshold = UNDER_SIEGE_AGE_THRESHOLD diff --git a/files/routes/comments.py b/files/routes/comments.py index 0d19a9a3e..cb73a0b49 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -305,7 +305,9 @@ def comment(v): process_options(v, c) execute_blackjack(v, c, c.body, "comment") - execute_under_siege(v, c, c.body, "comment") + + kind = "normal_comment" if posting_to_post else "wall_comment" + execute_under_siege(v, c, c.body, kind) if c.level == 1: c.top_comment_id = c.id else: c.top_comment_id = parent.top_comment_id