mirror of
https://github.com/iv-org/invidious.git
synced 2025-12-24 22:58:30 -06:00
Fix thin_mode preference for channel community page
thin_mode only took in account the query param because
env.get("preferences").as(Preferences).thin_mode returned a boolean and
not a string to be able to compare it with the string `"true"`
This commit is contained in:
parent
35d1d499bc
commit
ea0e377628
@ -231,8 +231,10 @@ module Invidious::Routes::Channels
|
|||||||
env.redirect "/post/#{URI.encode_www_form(lb)}?ucid=#{URI.encode_www_form(ucid)}"
|
env.redirect "/post/#{URI.encode_www_form(lb)}?ucid=#{URI.encode_www_form(ucid)}"
|
||||||
end
|
end
|
||||||
|
|
||||||
thin_mode = env.params.query["thin_mode"]? || env.get("preferences").as(Preferences).thin_mode
|
preferences = env.get("preferences").as(Preferences)
|
||||||
thin_mode = thin_mode == "true"
|
|
||||||
|
thin_mode = env.params.query["thin_mode"]?
|
||||||
|
thin_mode = (thin_mode == "true") || preferences.thin_mode
|
||||||
|
|
||||||
continuation = env.params.query["continuation"]?
|
continuation = env.params.query["continuation"]?
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user