under siege

pull/221/head
Aevann 2024-01-19 07:54:37 +02:00
parent 348d0cc069
commit 1469ace2fc
2 changed files with 4 additions and 2 deletions

View File

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

View File

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