gf
This commit is contained in:
parent
00cb86cc1b
commit
5e8a522310
2 changed files with 5 additions and 5 deletions
|
@ -213,7 +213,7 @@ def api_comment(v):
|
||||||
|
|
||||||
is_bot = request.headers.get("Authorization")
|
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())
|
now = int(time.time())
|
||||||
cutoff = now - 60 * 60 * 24
|
cutoff = now - 60 * 60 * 24
|
||||||
|
|
||||||
|
@ -351,7 +351,7 @@ def api_comment(v):
|
||||||
n = Notification(comment_id=c_jannied.id, user_id=v.id)
|
n = Notification(comment_id=c_jannied.id, user_id=v.id)
|
||||||
g.db.add(n)
|
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.is_banned = True
|
||||||
c.ban_reason = "ToS Violation"
|
c.ban_reason = "ToS Violation"
|
||||||
|
@ -721,7 +721,7 @@ def edit_comment(cid, v):
|
||||||
g.db.add(n)
|
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.is_banned = True
|
||||||
c.ban_reason = "ToS Violation"
|
c.ban_reason = "ToS Violation"
|
||||||
|
|
|
@ -284,7 +284,7 @@ def edit_post(pid, v):
|
||||||
g.db.add(n)
|
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.is_banned = True
|
||||||
p.ban_reason = "ToS Violation"
|
p.ban_reason = "ToS Violation"
|
||||||
|
@ -820,7 +820,7 @@ def submit_post(v):
|
||||||
g.db.add(n)
|
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.is_banned = True
|
||||||
new_post.ban_reason = "ToS Violation"
|
new_post.ban_reason = "ToS Violation"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue