From e50e2fcae8faa8d6b82cf7e7804f50e3c275f696 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 30 Oct 2022 20:47:49 +0200 Subject: [PATCH] fix prev commit --- files/routes/comments.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index f705be296..d95f3ff5d 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -265,7 +265,7 @@ def comment(v): if SITE == 'pcmemes.net' and c.body.lower().startswith("based"): execute_basedbot(c, level, body, parent_submission, parent_post, v) - if post.id not in ADMIGGER_THREADS and v.agendaposter and not v.marseyawarded and AGENDAPOSTER_PHRASE not in c.body.lower() and parent_post.sub != 'chudrama': + if parent_post.id not in ADMIGGER_THREADS and v.agendaposter and not v.marseyawarded and AGENDAPOSTER_PHRASE not in c.body.lower() and parent_post.sub != 'chudrama': c.is_banned = True c.ban_reason = "AutoJanny" g.db.add(c) @@ -462,7 +462,7 @@ def edit_comment(cid, v): execute_blackjack(v, c, c.body, "comment") - if post.id not in ADMIGGER_THREADS and v.agendaposter and not v.marseyawarded and AGENDAPOSTER_PHRASE not in c.body.lower() and c.post.sub != 'chudrama': + if c.post.id not in ADMIGGER_THREADS and v.agendaposter and not v.marseyawarded and AGENDAPOSTER_PHRASE not in c.body.lower() and c.post.sub != 'chudrama': abort(403, f'You have to include "{AGENDAPOSTER_PHRASE}" in your comment!')