fix: check that shows tabs exists before trying to fetch/parse

This commit is contained in:
Cameron Radmore 2026-09-14 17:39:30 -04:00
parent f3f045299b
commit f7139af4ef
No known key found for this signature in database
GPG Key ID: 51E32B9B64747796

View File

@ -223,6 +223,10 @@ module Invidious::Routes::Channels
locale, user, subscriptions, continuation, ucid, channel = data locale, user, subscriptions, continuation, ucid, channel = data
if !channel.tabs.includes? "shows"
return env.redirect "/channel/#{channel.ucid}"
end
sort_by = "" sort_by = ""
sort_options = [] of String sort_options = [] of String