This commit is contained in:
Aevann1 2021-11-05 16:52:41 +02:00
parent a868d4bc1a
commit 7198fe2a60
2 changed files with 21 additions and 5 deletions

View file

@ -531,7 +531,10 @@ def api_comment(v):
if v.any_block_exists(user): continue
if user.id != v.id: notify_users.add(user.id)
if request.host == 'rdrama.net' and 'aevann' in body_html.lower() and 1 not in notify_users: notify_users.add(1)
if request.host == 'rdrama.net':
if 'aevann' in body_html.lower() and 1 not in notify_users: notify_users.add(1)
if 'joan' in body_html.lower() and 28 not in notify_users: notify_users.add(28)
if 'carp' in body_html.lower() and 995 not in notify_users: notify_users.add(995)
for x in notify_users:
n = Notification(comment_id=c.id, user_id=x)
@ -771,7 +774,11 @@ def edit_comment(cid, v):
if v.any_block_exists(user): continue
if user.id != v.id: notify_users.add(user.id)
if request.host == 'rdrama.net' and 'aevann' in body_html.lower() and 1 not in notify_users: notify_users.add(1)
if request.host == 'rdrama.net':
if 'aevann' in body_html.lower() and 1 not in notify_users: notify_users.add(1)
if 'joan' in body_html.lower() and 28 not in notify_users: notify_users.add(28)
if 'carp' in body_html.lower() and 995 not in notify_users: notify_users.add(995)
for x in notify_users:
notif = notifs.filter_by(comment_id=c.id, user_id=x).first()