forked from MarseyWorld/MarseyWorld
redirect permabanned-cels to deux
parent
192ae72e8d
commit
8547e6b71d
|
@ -23,6 +23,9 @@ def front_all(v, sub=None, subdomain=None):
|
||||||
r = request.full_path
|
r = request.full_path
|
||||||
if r == '/?': r = '/'
|
if r == '/?': r = '/'
|
||||||
return redirect(f"/logged_out{r}")
|
return redirect(f"/logged_out{r}")
|
||||||
|
|
||||||
|
if v and v.is_banned and not v.unban_utc: return redirect('https://deuxrama.net')
|
||||||
|
|
||||||
if v and request.path.startswith('/logged_out'): return redirect(request.full_path.replace('/logged_out',''))
|
if v and request.path.startswith('/logged_out'): return redirect(request.full_path.replace('/logged_out',''))
|
||||||
|
|
||||||
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()
|
||||||
|
|
Loading…
Reference in New Issue