Remove unneeded redirect.invidious.io code in /redirect

This commit is contained in:
syeopite 2021-10-02 12:25:22 -07:00
parent 66e7285108
commit bb396a310e
No known key found for this signature in database
GPG key ID: 6FA616E5A5294A82

View file

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