Made AGENDAPOSTER_PHRASE a variable so it can easily be changed no matter what the day is.
This commit is contained in:
parent
73eee35c71
commit
017e07cace
3 changed files with 10 additions and 8 deletions
|
@ -476,7 +476,7 @@ def edit_post(pid, v):
|
|||
|
||||
p.body_html = body_html
|
||||
|
||||
if v.agendaposter and not v.marseyawarded and "black lives matter" not in f'{p.body}{p.title}'.lower():
|
||||
if v.agendaposter and not v.marseyawarded and AGENDAPOSTER_PHRASE not in f'{p.body}{p.title}'.lower():
|
||||
|
||||
p.is_banned = True
|
||||
p.ban_reason = "AutoJanny"
|
||||
|
@ -1009,7 +1009,7 @@ def submit_post(v):
|
|||
if new_post.club and not user.paid_dues: continue
|
||||
add_notif(cid, user.id)
|
||||
|
||||
if v.agendaposter and not v.marseyawarded and "black lives matter" not in f'{new_post.body}{new_post.title}'.lower():
|
||||
if v.agendaposter and not v.marseyawarded and AGENDAPOSTER_PHRASE not in f'{new_post.body}{new_post.title}'.lower():
|
||||
new_post.is_banned = True
|
||||
new_post.ban_reason = "AutoJanny"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue