diff --git a/files/helpers/wrappers.py b/files/helpers/wrappers.py index 1a035ee4e..7938884a0 100644 --- a/files/helpers/wrappers.py +++ b/files/helpers/wrappers.py @@ -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: diff --git a/files/routes/comments.py b/files/routes/comments.py index 55d449aae..8fef826d4 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -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 diff --git a/files/routes/posts.py b/files/routes/posts.py index d6bec8c51..c96565e43 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -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, diff --git a/schema.sql b/schema.sql index 8709ac37d..f31b91f59 100644 --- a/schema.sql +++ b/schema.sql @@ -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) );