diff --git a/src/invidious/config.cr b/src/invidious/config.cr index 085aeef8..4adadc48 100644 --- a/src/invidious/config.cr +++ b/src/invidious/config.cr @@ -156,7 +156,6 @@ class Config @pages_enabled[page]? || false end - def self.load # Load config from file or YAML string env var env_config_file = "INVIDIOUS_CONFIG_FILE" diff --git a/src/invidious/routes/preferences.cr b/src/invidious/routes/preferences.cr index 9106d4cf..1dfc472a 100644 --- a/src/invidious/routes/preferences.cr +++ b/src/invidious/routes/preferences.cr @@ -195,9 +195,9 @@ module Invidious::Routes::PreferencesRoute CONFIG.default_user_preferences.feed_menu = admin_feed_menu pages_enabled = { - "popular" => (env.params.body["popular_enabled"]?.try &.as(String) || "off") == "on", + "popular" => (env.params.body["popular_enabled"]?.try &.as(String) || "off") == "on", "trending" => (env.params.body["trending_enabled"]?.try &.as(String) || "off") == "on", - "search" => (env.params.body["search_enabled"]?.try &.as(String) || "off") == "on" + "search" => (env.params.body["search_enabled"]?.try &.as(String) || "off") == "on", } CONFIG.pages_enabled = pages_enabled @@ -350,4 +350,4 @@ module Invidious::Routes::PreferencesRoute env.redirect referer end -end \ No newline at end of file +end