From 64652435e41ea8e2d136ee578082d33c9e11e0b9 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 1 Feb 2022 07:42:45 +0200 Subject: [PATCH] fsd --- files/routes/comments.py | 4 ++-- files/routes/posts.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 55a5f0431..375381540 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -416,7 +416,7 @@ def api_comment(v): n = Notification(comment_id=c_jannied.id, user_id=v.id) g.db.add(n) - elif 'nigg' in c.body.lower() and not v.nwordpass: + elif request.host == 'rdrama.net' and 'nigg' in c.body.lower() and not v.nwordpass: c.is_banned = True c.ban_reason = "AutoJanny" @@ -789,7 +789,7 @@ def edit_comment(cid, v): n = Notification(comment_id=c_jannied.id, user_id=v.id) g.db.add(n) - elif 'nigg' in c.body.lower() and not v.nwordpass: + elif request.host == 'rdrama.net' and 'nigg' in c.body.lower() and not v.nwordpass: c.is_banned = True c.ban_reason = "AutoJanny" diff --git a/files/routes/posts.py b/files/routes/posts.py index 509afa61c..71563edae 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -520,7 +520,7 @@ def edit_post(pid, v): n = Notification(comment_id=c_jannied.id, user_id=v.id) g.db.add(n) - elif 'nigg' in f'{p.body}{p.title}'.lower() and not v.nwordpass: + elif request.host == 'rdrama.net' and 'nigg' in f'{p.body}{p.title}'.lower() and not v.nwordpass: p.is_banned = True p.ban_reason = "AutoJanny" @@ -1112,7 +1112,7 @@ def submit_post(v): n = Notification(comment_id=c_jannied.id, user_id=v.id) g.db.add(n) - elif 'nigg' in f'{new_post.body}{new_post.title}'.lower() and not v.nwordpass: + elif request.host == 'rdrama.net' and 'nigg' in f'{new_post.body}{new_post.title}'.lower() and not v.nwordpass: new_post.is_banned = True new_post.ban_reason = "AutoJanny"