forked from rDrama/rDrama
minor fix
parent
62f3bb44dc
commit
890503fbb9
|
@ -508,16 +508,17 @@ def execute_antispam_comment_check(body, v):
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
abort(403, "Too much spam!")
|
abort(403, "Too much spam!")
|
||||||
|
|
||||||
def execute_dylan(v):
|
def execute_by_username(v):
|
||||||
if "dylan" in v.username.lower() and "hewitt" in v.username.lower():
|
username = v.username.lower()
|
||||||
|
if username.startswith("icosaka") or ("dylan" in username and "hewitt" in username):
|
||||||
v.shadowbanned = AUTOJANNY_ID
|
v.shadowbanned = AUTOJANNY_ID
|
||||||
v.ban_reason = "Dylan"
|
v.ban_reason = username
|
||||||
g.db.add(v)
|
g.db.add(v)
|
||||||
ma = ModAction(
|
ma = ModAction(
|
||||||
kind="shadowban",
|
kind="shadowban",
|
||||||
user_id=AUTOJANNY_ID,
|
user_id=AUTOJANNY_ID,
|
||||||
target_user_id=v.id,
|
target_user_id=v.id,
|
||||||
_note=f'reason: "Dylan ({v.age} seconds)"'
|
_note=f'reason: "{username} ({v.age} seconds)"'
|
||||||
)
|
)
|
||||||
g.db.add(ma)
|
g.db.add(ma)
|
||||||
|
|
||||||
|
@ -525,7 +526,7 @@ def execute_under_siege(v, target, body, kind):
|
||||||
if v.shadowbanned: return
|
if v.shadowbanned: return
|
||||||
|
|
||||||
if SITE == 'watchpeopledie.tv':
|
if SITE == 'watchpeopledie.tv':
|
||||||
execute_dylan(v)
|
execute_by_username(v)
|
||||||
if v.shadowbanned: return
|
if v.shadowbanned: return
|
||||||
if kind != 'post': return
|
if kind != 'post': return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue