From 8dde3965aa533f96ac1da07a39dc3744d6a889fb Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 24 Apr 2022 00:06:45 +0200 Subject: [PATCH] fds --- files/routes/comments.py | 2 +- files/routes/posts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index cb0d898bfd..b226414a33 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -800,7 +800,7 @@ def edit_comment(cid, v): notif = Notification(comment_id=c.id, user_id=CARP_ID) g.db.add(notif) - if v.agendaposter and not v.marseyawarded and AGENDAPOSTER_PHRASE not in c.body.lower(): + if v.agendaposter and not v.marseyawarded and AGENDAPOSTER_PHRASE not in c.body.lower() and not c.is_banned: c.is_banned = True c.ban_reason = "AutoJanny" diff --git a/files/routes/posts.py b/files/routes/posts.py index 60b6c84cfd..aaf56608fa 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -521,7 +521,7 @@ def edit_post(pid, v): p.body_html = body_html - if v.id == p.author_id and v.agendaposter and not v.marseyawarded and AGENDAPOSTER_PHRASE not in f'{p.body}{p.title}'.lower(): + if v.id == p.author_id and v.agendaposter and not v.marseyawarded and AGENDAPOSTER_PHRASE not in f'{p.body}{p.title}'.lower() and not p.is_banned: p.is_banned = True p.ban_reason = "AutoJanny"