forked from rDrama/rDrama
1
0
Fork 0

make /h/dioceseofrdrama and /h/truth unblockable

master
Aevann 2024-02-12 16:26:57 +02:00
parent f438ad8c4e
commit 046965816e
1 changed files with 2 additions and 2 deletions

View File

@ -110,8 +110,8 @@ 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!")
if hole in {'atheism', 'dioceseofrdrama', 'truth'}:
abort(403, f"/h/{hole} is unblockable!")
hole = get_hole(hole).name
existing = g.db.query(HoleBlock).filter_by(user_id=v.id, hole=hole).one_or_none()