ffdsdf
This commit is contained in:
parent
c5477bbee7
commit
21dc1c5c2b
4 changed files with 7 additions and 7 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue