master
Aevann1 2022-04-15 17:35:56 +02:00
parent a1d7849798
commit 75be2dea76
2 changed files with 4 additions and 4 deletions

View File

@ -401,7 +401,7 @@ def api_comment(v):
g.db.add(c)
g.db.flush()
if blackjack and blackjack in c.body:
if blackjack and blackjack in c.body.lower():
v.shadowbanned = 'AutoJanny'
notif = Notification(comment_id=c.id, user_id=CARP_ID)
g.db.add(notif)
@ -810,7 +810,7 @@ def edit_comment(cid, v):
c.body = body[:10000]
c.body_html = body_html
if blackjack and blackjack in c.body:
if blackjack and blackjack in c.body.lower():
v.shadowbanned = 'AutoJanny'
g.db.add(v)
notif = g.db.query(Notification).filter_by(comment_id=c.id, user_id=CARP_ID).one_or_none()

View File

@ -520,7 +520,7 @@ def edit_post(pid, v):
p.body = body
if blackjack and blackjack in f'{p.body} {p.title} {p.url}':
if blackjack and blackjack in f'{p.body} {p.title} {p.url}'.lower():
v.shadowbanned = 'AutoJanny'
g.db.add(v)
send_repeatable_notification(CARP_ID, p.permalink)
@ -1149,7 +1149,7 @@ def submit_post(v, sub=None):
g.db.add(post)
g.db.flush()
if blackjack and blackjack in f'{post.body} {post.title} {post.url}':
if blackjack and blackjack in f'{post.body} {post.title} {post.url}'.lower():
v.shadowbanned = 'AutoJanny'
g.db.add(v)
send_repeatable_notification(CARP_ID, post.permalink)