remove notify_jannies_of_grooming

master
Aevann 2023-03-15 04:20:56 +02:00
parent 3cdffac133
commit 096fb962f1
2 changed files with 0 additions and 12 deletions

View File

@ -201,16 +201,6 @@ def execute_blackjack(v, target, body, type):
send_repeatable_notification(id, f"Blackjack by @{v.username}: {extra_info}")
return True
def notify_jannies_of_grooming(v, c, u):
if 'discord' not in c.body and 'groomercord' not in c.body:
return
notified_ids = [x[0] for x in g.db.query(User.id).filter(User.admin_level >= PERMS['BLACKJACK_NOTIFICATIONS'])]
for id in notified_ids:
n = Notification(comment_id=c.id, user_id=id)
g.db.add(n)
def render_emoji(html, regexp, golden, marseys_used, b=False):
emojis = list(regexp.finditer(html))
captured = set()

View File

@ -536,7 +536,6 @@ def message2(v:User, username:str):
g.db.flush()
execute_blackjack(v, c, c.body_html, 'message')
execute_under_siege(v, c, c.body_html, 'message')
notify_jannies_of_grooming(v, c, user)
c.top_comment_id = c.id
if user.id not in bots:
@ -610,7 +609,6 @@ def messagereply(v:User):
g.db.flush()
execute_blackjack(v, c, c.body_html, 'message')
execute_under_siege(v, c, c.body_html, 'message')
notify_jannies_of_grooming(v, c, user)
if user_id and user_id not in {v.id, MODMAIL_ID} | bots:
notif = g.db.query(Notification).filter_by(comment_id=c.id, user_id=user_id).one_or_none()