remotes/1693045480750635534/spooky-22
Aevann1 2021-10-29 18:11:45 +02:00
parent 7d0b36b574
commit 678972d2e0
2 changed files with 5 additions and 5 deletions

View File

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

View File

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