From e53bd6d84c60b0748c49f2bd31369667a0daa403 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 11 Feb 2024 09:04:09 +0200 Subject: [PATCH] make /h/atheism unblockable --- files/routes/holes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/routes/holes.py b/files/routes/holes.py index 4c3dd7f89..8d5d37c23 100644 --- a/files/routes/holes.py +++ b/files/routes/holes.py @@ -110,6 +110,9 @@ def unexile(v, hole, uid): @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID) @auth_required def block_sub(v, hole): + if hole == 'atheism': + abort(403, "/h/atheism is unblockable!") + hole = get_hole(hole).name existing = g.db.query(HoleBlock).filter_by(user_id=v.id, hole=hole).one_or_none() if not existing: