forked from rDrama/rDrama
fix typo and remove deux redirect
parent
55332b52b5
commit
eac3a72976
|
@ -153,7 +153,7 @@ def is_not_permabanned(f):
|
|||
check_ban_evade(v)
|
||||
|
||||
if v.is_banned and v.unban_utc == 0:
|
||||
return {"error": "Interal server error"}, 500
|
||||
return {"error": "Internal server error"}, 500
|
||||
|
||||
return make_response(f(*args, v=v, **kwargs))
|
||||
|
||||
|
|
|
@ -22,9 +22,6 @@ def front_all(v, sub=None, subdomain=None):
|
|||
if not v and not request.path.startswith('/logged_out'):
|
||||
return redirect(f"/logged_out{request.full_path}")
|
||||
|
||||
if SITE == 'rdrama.net' and v and v.is_banned and not v.unban_utc:
|
||||
return redirect('https://deuxrama.net')
|
||||
|
||||
if v and request.path.startswith('/logged_out'):
|
||||
redir = request.full_path.replace('/logged_out','')
|
||||
if not redir.startswith('/'): redir = f'/{redir}'
|
||||
|
|
Loading…
Reference in New Issue