From bb396a310ed8b3042793e0dc7a4c88f8412f7e3d Mon Sep 17 00:00:00 2001 From: syeopite Date: Sat, 2 Oct 2021 12:25:22 -0700 Subject: [PATCH] Remove unneeded redirect.invidious.io code in /redirect --- src/invidious/routes/misc.cr | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/invidious/routes/misc.cr b/src/invidious/routes/misc.cr index 94d54283..3ea4c272 100644 --- a/src/invidious/routes/misc.cr +++ b/src/invidious/routes/misc.cr @@ -40,11 +40,6 @@ module Invidious::Routes::Misc def self.cross_instance_redirect(env) referer = get_referer(env) - - if !env.get("preferences").as(Preferences).automatic_instance_redirect - return env.redirect("https://redirect.invidious.io/#{referer}") - end - instance_url = fetch_random_instance env.redirect "https://#{instance_url}#{referer}" end