From 1f6a31617b96ed55156f2f419ae614bbe5de4d3c Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 17 Sep 2023 22:29:06 +0300 Subject: [PATCH] remove legacy code --- files/routes/front.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/front.py b/files/routes/front.py index 786c61aca..544847da9 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -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()