remotes/1693045480750635534/spooky-22
Aevann1 2022-02-10 22:54:45 +02:00
parent c7f25eeec8
commit 4d59a366ad
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ def notifications(v):
@limiter.limit("3/second;30/minute;400/hour;2000/day")
@auth_desired
def front_all(v, sub=None):
if sub: sub = g.db.query(Sub).filter_by(name=sub..strip().lower()).one_or_none()
if sub: sub = g.db.query(Sub).filter_by(name=sub.strip().lower()).one_or_none()
if request.path.startswith('/s/') and not sub: abort(404)