From e1032ab19120a7507b1eb4fc1519dbca9384fa4f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 13 Nov 2021 16:16:23 +0200 Subject: [PATCH] fdfd --- files/routes/posts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 851a56d38..42863ed18 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -71,7 +71,7 @@ def publish(pid, v): if 'aevann' in f'{post.body_html}{post.title}'.lower() and 1 not in notify_users: notify_users.add(1) if 'joan' in f'{post.body_html}{post.title}'.lower() and 28 not in notify_users: notify_users.add(28) if 'carp' in f'{post.body_html}{post.title}'.lower() and 995 not in notify_users: notify_users.add(995) - if ('idio3' in f'{post.body_html}{post.title}' or 'idio ' in f'{post.body_html}{post.title}') and 30 not in notify_users: notify_users.add(30) + if ('idio3' in f'{post.body_html}{post.title}'.lower() or 'idio ' in f'{post.body_html}{post.title}'.lower()) and 30 not in notify_users: notify_users.add(30) for x in notify_users: send_notification(x, f"@{v.username} has mentioned you: http://{site}{post.permalink}") @@ -343,7 +343,7 @@ def edit_post(pid, v): if 'aevann' in f'{body_html}{title}'.lower() and 1 not in notify_users: notify_users.add(1) if 'joan' in f'{body_html}{title}'.lower() and 28 not in notify_users: notify_users.add(28) if 'carp' in f'{body_html}{title}'.lower() and 995 not in notify_users: notify_users.add(995) - if ('idio3' in f'{body_html}{title}' or 'idio ' in f'{body_html}{title}') and 30 not in notify_users: notify_users.add(30) + if ('idio3' in f'{body_html}{title}'.lower() or 'idio ' in f'{body_html}{title}'.lower()) and 30 not in notify_users: notify_users.add(30) for x in notify_users: existing = g.db.query(Comment.id).filter(Comment.author_id == NOTIFICATIONS_ACCOUNT, Comment.body == message, Comment.notifiedto == x).first() @@ -792,7 +792,7 @@ def submit_post(v): if 'aevann' in f'{body_html}{title}'.lower() and 1 not in notify_users: notify_users.add(1) if 'joan' in f'{body_html}{title}'.lower() and 28 not in notify_users: notify_users.add(28) if 'carp' in f'{body_html}{title}'.lower() and 995 not in notify_users: notify_users.add(995) - if ('idio3' in f'{body_html}{title}' or 'idio ' in f'{body_html}{title}') and 30 not in notify_users: notify_users.add(30) + if ('idio3' in f'{body_html}{title}'.lower() or 'idio ' in f'{body_html}{title}'.lower()) and 30 not in notify_users: notify_users.add(30) for x in notify_users: send_notification(x, f"@{v.username} has mentioned you: http://{site}{new_post.permalink}")