forked from rDrama/rDrama
1
0
Fork 0

fix typo and remove deux redirect

master
Aevann1 2022-08-06 01:47:20 +02:00
parent 55332b52b5
commit eac3a72976
2 changed files with 1 additions and 4 deletions

View File

@ -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))

View File

@ -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}'