From fb9f04c738257de73ff29c344f7d5be8510c7be2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 9 Mar 2022 06:23:35 +0200 Subject: [PATCH] fds --- files/routes/front.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/front.py b/files/routes/front.py index f3f50632e..a69612a26 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -142,7 +142,7 @@ def notifications(v): def front_all(v, sub=None, subdomain=None): if sub: sub = g.db.query(Sub).filter_by(name=sub.strip().lower()).one_or_none() - if request.path.startswith('/h/') or request.path.startswith('/s/') and not sub: abort(404) + if (request.path.startswith('/h/') or request.path.startswith('/s/')) and not sub: abort(404) if g.webview and not session.get("session_id"): session.permanent = True