From ea0e377628ebf286a48e09705756f24211d86f90 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Sun, 14 Dec 2025 20:15:40 -0300 Subject: [PATCH] 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"` --- src/invidious/routes/channels.cr | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/invidious/routes/channels.cr b/src/invidious/routes/channels.cr index f785de18..968d38dc 100644 --- a/src/invidious/routes/channels.cr +++ b/src/invidious/routes/channels.cr @@ -231,8 +231,10 @@ module Invidious::Routes::Channels env.redirect "/post/#{URI.encode_www_form(lb)}?ucid=#{URI.encode_www_form(ucid)}" end - thin_mode = env.params.query["thin_mode"]? || env.get("preferences").as(Preferences).thin_mode - thin_mode = thin_mode == "true" + preferences = env.get("preferences").as(Preferences) + + thin_mode = env.params.query["thin_mode"]? + thin_mode = (thin_mode == "true") || preferences.thin_mode continuation = env.params.query["continuation"]?