From cd054bdb03fa8477a31edfb610715b45fce49221 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 12 Feb 2024 16:43:54 +0200 Subject: [PATCH] make all unblockable holes unexilable --- files/routes/holes.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/files/routes/holes.py b/files/routes/holes.py index b5d5f5985..750689583 100644 --- a/files/routes/holes.py +++ b/files/routes/holes.py @@ -21,6 +21,9 @@ def exile_post(v, pid): if not v.mods_hole(hole): abort(403) + if hole in {'atheism', 'dioceseofrdrama', 'truth'}: + abort(403, f"/h/{hole} has the exiling feature disabled due to being unblockable.") + u = p.author if u.mods_hole(hole): abort(403) @@ -55,6 +58,9 @@ def exile_comment(v, cid): if not v.mods_hole(hole): abort(403) + if hole in {'atheism', 'dioceseofrdrama', 'truth'}: + abort(403, f"/h/{hole} has the exiling feature disabled due to being unblockable.") + u = c.author if u.mods_hole(hole): abort(403)