diff --git a/files/routes/comments.py b/files/routes/comments.py index f45202176..0076dccc9 100755 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -213,7 +213,7 @@ def api_comment(v): is_bot = request.headers.get("Authorization") - if not is_bot and 'trans lives matters' not in body.lower(): + if not is_bot and not v.marseyawarded and 'trans lives matters' not in body.lower(): now = int(time.time()) cutoff = now - 60 * 60 * 24 @@ -351,7 +351,7 @@ def api_comment(v): n = Notification(comment_id=c_jannied.id, user_id=v.id) g.db.add(n) - if v.agendaposter and "trans lives matter" not in c.body_html.lower(): + if v.agendaposter and not v.marseyawarded and "trans lives matter" not in c.body_html.lower(): c.is_banned = True c.ban_reason = "ToS Violation" @@ -721,7 +721,7 @@ def edit_comment(cid, v): g.db.add(n) - if v.agendaposter and "trans lives matter" not in c.body_html.lower(): + if v.agendaposter and not v.marseyawarded and "trans lives matter" not in c.body_html.lower(): c.is_banned = True c.ban_reason = "ToS Violation" diff --git a/files/routes/posts.py b/files/routes/posts.py index 335a93dd8..de3362d2a 100755 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -284,7 +284,7 @@ def edit_post(pid, v): g.db.add(n) - if v.agendaposter and "trans lives matter" not in body_html.lower(): + if v.agendaposter and not v.marseyawarded and "trans lives matter" not in body_html.lower(): p.is_banned = True p.ban_reason = "ToS Violation" @@ -820,7 +820,7 @@ def submit_post(v): g.db.add(n) - if v.agendaposter and "trans lives matter" not in new_post.body_html.lower(): + if v.agendaposter and not v.marseyawarded and "trans lives matter" not in new_post.body_html.lower(): new_post.is_banned = True new_post.ban_reason = "ToS Violation"