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"