forked from rDrama/rDrama
1
0
Fork 0

make /h/atheism unblockable

master
Aevann 2024-02-11 09:04:09 +02:00
parent d6581b3a6b
commit e53bd6d84c
1 changed files with 3 additions and 0 deletions

View File

@ -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: