mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-20 21:24:21 -05:00
Remove unneeded redirect.invidious.io code in /redirect
This commit is contained in:
parent
66e7285108
commit
bb396a310e
@ -40,11 +40,6 @@ module Invidious::Routes::Misc
|
|||||||
|
|
||||||
def self.cross_instance_redirect(env)
|
def self.cross_instance_redirect(env)
|
||||||
referer = get_referer(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
|
instance_url = fetch_random_instance
|
||||||
env.redirect "https://#{instance_url}#{referer}"
|
env.redirect "https://#{instance_url}#{referer}"
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user