From 8c76addad61f1a2a1df4ed6990d9c9af40116151 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 8 Aug 2023 15:04:04 +0300 Subject: [PATCH] fix bug --- 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 fd4458148..a5e107ac2 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -502,7 +502,7 @@ def submit_post(v, sub=None): return {"post_id": dup.id, "success": False} if not execute_antispam_post_check(title, v, url): - return redirect("/notifications") + abort(403, "You have been banned for 1 day for spamming!") if len(url) > 2048: abort(400, "There's a 2048 character limit for URLs!")