From 37db83a94e4dd01ff675839f51639fded241c005 Mon Sep 17 00:00:00 2001 From: syeopite Date: Fri, 25 Jun 2021 18:45:32 -0700 Subject: [PATCH] Add brand redirect for /user/ links --- src/invidious.cr | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index 422b834f..a1ed3fc7 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1649,21 +1649,6 @@ get "/attribution_link" do |env| env.redirect url end -get "/user/:user" do |env| - user = env.params.url["user"] - env.redirect "/channel/#{user}" -end - -get "/user/:user/videos" do |env| - user = env.params.url["user"] - env.redirect "/channel/#{user}/videos" -end - -get "/user/:user/about" do |env| - user = env.params.url["user"] - env.redirect "/channel/#{user}" -end - # API Endpoints get "/api/v1/stats" do |env|