From 914c89c301d17414a73dec9d6518fa20f1c0fb8a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 1 Aug 2022 21:30:42 +0200 Subject: [PATCH] make deux redirection only happen in rdrama --- files/routes/front.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/front.py b/files/routes/front.py index f8768e16d..0e116e492 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -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','/'))