From b0dcf4e8210f984189025fd037eb130e25389e9c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 9 Mar 2022 05:06:51 +0200 Subject: [PATCH] sfd --- files/routes/front.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/routes/front.py b/files/routes/front.py index 75f433912..f3f50632e 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -135,12 +135,14 @@ def notifications(v): @app.get("/logged_out") @app.get("/h/") @app.get("/logged_out/h/") +@app.get("/s/") +@app.get("/logged_out/s/") @limiter.limit("3/second;30/minute;1000/hour;5000/day") @auth_desired 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/') 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