From c5ace85f9ba2183d1850d7fa8375ab51a89af0db Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 26 May 2022 17:57:24 +0200 Subject: [PATCH 1/2] fsd --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index c1c1988c69..29046f2ff2 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1118,7 +1118,7 @@ def submit_post(v, sub=None): if blackjack and any(i in f'{post.body} {post.title} {post.url}'.lower() for i in blackjack.split()): v.shadowbanned = 'AutoJanny' g.db.add(v) - send_repeatable_notification(CARP_ID, post.permalink) + if CARP_ID: send_repeatable_notification(CARP_ID, post.permalink) if v and v.admin_level > 2: for option in bet_options: From 957cf5ba8f117ff19165f6192aa6d0c55147021a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 26 May 2022 20:09:44 +0200 Subject: [PATCH 2/2] dfs --- files/routes/awards.py | 2 +- schema.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index 33cf793983..4c43ff2e46 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -669,7 +669,7 @@ def admin_userawards_post(v): for key, value in notify_awards.items(): note += f"{value} {AWARDS[key]['title']}, " - if len(note) > 256: return {"error": "You're giving too many awards at the same time!"} + if len(note) > 500: return {"error": "You're giving too many awards at the same time!"} ma=ModAction( kind="grant_awards", diff --git a/schema.sql b/schema.sql index bf01d0004b..ba21c97c6c 100644 --- a/schema.sql +++ b/schema.sql @@ -380,7 +380,7 @@ CREATE TABLE public.modactions ( target_comment_id integer, created_utc integer NOT NULL, kind character varying(32) DEFAULT NULL::character varying, - _note character varying(256) DEFAULT NULL::character varying + _note character varying(500) DEFAULT NULL::character varying );