remove legacy code

master
Aevann 2023-09-17 22:29:06 +03:00
parent e53eb20084
commit 1f6a31617b
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ def front_all(v, sub=None):
if sub and not User.can_see(v, sub):
abort(403)
if (request.path.startswith('/h/') or request.path.startswith('/s/')) and not sub: abort(404)
if request.path.startswith('/h/') and not sub:
abort(404)
page = get_page()