mirror of
https://github.com/iv-org/invidious.git
synced 2026-09-26 11:35:27 -05:00
fix: check that shows tabs exists before trying to fetch/parse
This commit is contained in:
parent
f3f045299b
commit
f7139af4ef
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user