make deux redirection only happen in rdrama

master
Aevann1 2022-08-01 21:30:42 +02:00
parent eca5b5a682
commit 914c89c301
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ 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 v and v.is_banned and not v.unban_utc: return redirect('https://deuxrama.net')
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'):
return redirect(request.full_path.replace('/logged_out','/'))