Invidious is an alternative front-end to YouTube
Add support for community post page/comments (#4010)
Samantaz Fox60fae015d8b5
diff --cc src/invidious/routing.crindex 8c38aaed,8cb49249..d6bd991c--- a/src/invidious/routing.cr+++ b/src/invidious/routing.cr@@@ -128,30 -127,20 +128,31 @@@ module Invidious::Routinget "/channel/:ucid/live", Routes::Channels, :liveget "/user/:user/live", Routes::Channels, :liveget "/c/:user/live", Routes::Channels, :live+ get "/post/:id", Routes::Channels, :post- {"", "/videos", "/shorts", "/streams", "/playlists", "/community", "/about"}.each do |path|- # /c/LinusTechTips- get "/c/:user#{path}", Routes::Channels, :brand_redirect- # /user/linustechtips | Not always the same as /c/- get "/user/:user#{path}", Routes::Channels, :brand_redirect- # /@LinusTechTips | Handle- get "/@:user#{path}", Routes::Channels, :brand_redirect- # /attribution_link?a=anything&u=/channel/UCZYTClx2T1of7BRZ86-8fow- get "/attribution_link#{path}", Routes::Channels, :brand_redirect- # /profile?user=linustechtips- get "/profile/#{path}", Routes::Channels, :profile- end+ # Channel catch-all, to redirect future routes to the channel's home+ # NOTE: defined last in order to be processed after the other routes+ get "/channel/:ucid/*", Routes::Channels, :redirect_home++ # /c/LinusTechTips+ get "/c/:user", Routes::Channels, :brand_redirect+ get "/c/:user/:tab", Routes::Channels, :brand_redirect++ # /user/linustechtips (Not always the same as /c/)+ get "/user/:user", Routes::Channels, :brand_redirect+ get "/user/:user/:tab", Routes::Channels, :brand_redirect++ # /@LinusTechTips (Handle)+ get "/@:user", Routes::Channels, :brand_redirect+ get "/@:user/:tab", Routes::Channels, :brand_redirect++ # /attribution_link?a=anything&u=/channel/UCZYTClx2T1of7BRZ86-8fow+ get "/attribution_link", Routes::Channels, :brand_redirect+ get "/attribution_link/:tab", Routes::Channels, :brand_redirect++ # /profile?user=linustechtips+ get "/profile", Routes::Channels, :profile+ get "/profile/*", Routes::Channels, :profileenddef register_watch_routes