forked from MarseyWorld/MarseyWorld
fds
parent
a1d7849798
commit
75be2dea76
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue