From 1a37da07fe1a3bf37107f6017ef8eb297b78fc98 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 2 Dec 2021 21:28:30 +0200 Subject: [PATCH] sdf --- files/routes/comments.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index cf2fee32a..0d0a4ebaa 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -557,7 +557,7 @@ def api_comment(v): notify_users.add(995) notify_users.add(541) if ('idio3' in body_html.lower() or 'idio ' in body_html.lower()) and 30 not in notify_users: notify_users.add(30) - if [x in body_html.lower() for x in ('landlord_messiah', 'landlordmessiah', ' llm ', 'landlet')] and 253 not in notify_users: notify_users.add(253) + # if [x in body_html.lower() for x in [('landlord_messiah', 'landlordmessiah', ' llm ', 'landlet')] and 253 not in notify_users: notify_users.add(253) for x in notify_users: n = Notification(comment_id=c.id, user_id=x) @@ -830,7 +830,7 @@ def edit_comment(cid, v): notify_users.add(995) notify_users.add(541) if ('idio3' in body_html.lower() or 'idio ' in body_html.lower()) and 30 not in notify_users: notify_users.add(30) - if [x in body_html.lower() for x in ('landlord_messiah', 'landlordmessiah', ' llm ', 'landlet')] and 253 not in notify_users: notify_users.add(253) + # if [x in body_html.lower() for x in ('landlord_messiah', 'landlordmessiah', ' llm ', 'landlet')] and 253 not in notify_users: notify_users.add(253) for x in notify_users: notif = g.db.query(Notification).filter_by(comment_id=c.id, user_id=x).first()