forked from rDrama/rDrama
fix forgotten subdomain
parent
7f6675f7f9
commit
b2b5633c8b
|
@ -15,7 +15,7 @@ from files.__main__ import app, cache, limiter, redis_instance
|
||||||
@app.get("/h/<sub>")
|
@app.get("/h/<sub>")
|
||||||
@limiter.limit("30/minute;5000/hour;10000/day")
|
@limiter.limit("30/minute;5000/hour;10000/day")
|
||||||
@auth_desired_with_logingate
|
@auth_desired_with_logingate
|
||||||
def front_all(v, sub=None, subdomain=None):
|
def front_all(v, sub=None):
|
||||||
if sub:
|
if sub:
|
||||||
sub = get_sub_by_name(sub, graceful=True)
|
sub = get_sub_by_name(sub, graceful=True)
|
||||||
if sub and not User.can_see(v, sub):
|
if sub and not User.can_see(v, sub):
|
||||||
|
|
Loading…
Reference in New Issue