From ce27be1d4a33e97ba9e01b500857fd5431005734 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 10 Dec 2022 10:26:47 +0200 Subject: [PATCH] fix comment refactor bug --- files/routes/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 17ee16af2f..601eb91c3d 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -199,7 +199,7 @@ def comment(v:User): if v.owoify: body_for_sanitize = owoify(body_for_sanitize) if v.marsify: body_for_sanitize = marsify(body_for_sanitize) - torture = (v.agendaposter and not v.marseyawarded and post_target.sub != 'chudrama' and post_target.id not in ADMIGGER_THREADS) + torture = (v.agendaposter and not v.marseyawarded and not (posting_to_submission and post_target.sub == 'chudrama') and post_target.id not in ADMIGGER_THREADS) body_html = sanitize(body_for_sanitize, limit_pings=5, count_marseys=not v.marsify, torture=torture) if post_target.id not in ADMIGGER_THREADS and '!wordle' not in body.lower() and AGENDAPOSTER_PHRASE not in body.lower():