remotes/1693045480750635534/spooky-22
Aevann1 2021-11-05 16:40:14 +02:00
parent fac7821235
commit 34e6581f3a
4 changed files with 7 additions and 7 deletions

View File

@ -49,7 +49,7 @@ def check_ban_evade(v):
continue
post.is_banned=True
post.ban_reason="permaban evasion"
post.ban_reason="AutoJanny"
g.db.add(post)
ma=ModAction(
@ -65,7 +65,7 @@ def check_ban_evade(v):
continue
comment.is_banned=True
comment.ban_reason="permaban evasion"
comment.ban_reason="AutoJanny"
g.db.add(comment)
try:

View File

@ -239,7 +239,7 @@ def api_comment(v):
for comment in similar_comments:
comment.is_banned = True
comment.ban_reason = "Automatic spam removal. This happened because the post's creator submitted too much similar content too quickly."
comment.ban_reason = "AutoJanny"
g.db.add(comment)
ma=ModAction(
user_id=AUTOJANNY_ACCOUNT,
@ -660,7 +660,7 @@ def edit_comment(cid, v):
for comment in similar_comments:
comment.is_banned = True
comment.ban_reason = "Automatic spam removal. This happened because the post's creator submitted too much similar content too quickly."
comment.ban_reason = "AutoJanny"
g.db.add(comment)
return {"error": "Too much spam!"}, 403

View File

@ -643,7 +643,7 @@ def submit_post(v):
for post in similar_posts + similar_urls:
post.is_banned = True
post.is_pinned = False
post.ban_reason = "Automatic spam removal. This happened because the post's creator submitted too much similar content too quickly."
post.ban_reason = "AutoJanny"
g.db.add(post)
ma=ModAction(
user_id=AUTOJANNY_ACCOUNT,

View File

@ -331,7 +331,7 @@ CREATE TABLE public.comments (
is_pinned character varying(30),
body character varying(10000),
body_html character varying(40000),
ban_reason character varying(256),
ban_reason character varying(25),
notifiedto integer
);
@ -647,7 +647,7 @@ CREATE TABLE public.submissions (
body character varying(10000),
body_html character varying(20000),
embed_url character varying(1500),
ban_reason character varying(256),
ban_reason character varying(25),
title_html character varying(1500)
);