From 796caef33685e26d985ed989ea50d0908162b556 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 25 Aug 2023 05:25:09 +0300 Subject: [PATCH] dont allow this https://watchpeopledie.tv/post/62465/a-place-where-a-body-shouldnt --- files/routes/reporting.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/routes/reporting.py b/files/routes/reporting.py index d6168830e..fd705d305 100644 --- a/files/routes/reporting.py +++ b/files/routes/reporting.py @@ -166,6 +166,8 @@ def move_post(post, v, reason): if not can_move_post: return False if sub_to == None: + if HOLE_REQUIRED: + abort(403, "All posts are required to be flaired!") sub_to_in_notif = 'the main feed' else: sub_to_in_notif = f'/h/{sub_to}'