master
Aevann1 2022-02-01 07:42:45 +02:00
parent 66296cac73
commit fb61893227
2 changed files with 4 additions and 4 deletions

View File

@ -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"

View File

@ -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"