summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2020-07-26 11:09:45 -0400
committerOmar Roth <omarroth@protonmail.com>2020-07-26 11:09:45 -0400
commitdb83ede73ca38cd4c661e96b8f9823db99d9f5c2 (patch)
treeceb1e2468dfcc6ab508a5630490a634918fa3c6b /src
parent452d1e8307d6344dd51c5437ccd032a566291c34 (diff)
downloadinvidious-db83ede73ca38cd4c661e96b8f9823db99d9f5c2.tar.gz
invidious-db83ede73ca38cd4c661e96b8f9823db99d9f5c2.tar.bz2
invidious-db83ede73ca38cd4c661e96b8f9823db99d9f5c2.zip
Add missing default for ConfigPreferences
Diffstat (limited to 'src')
-rw-r--r--src/invidious/helpers/helpers.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/helpers/helpers.cr b/src/invidious/helpers/helpers.cr
index 4d697745..56f856c0 100644
--- a/src/invidious/helpers/helpers.cr
+++ b/src/invidious/helpers/helpers.cr
@@ -77,7 +77,7 @@ struct Config
property statistics_enabled : Bool = false
property admins : Array(String) = [] of String
property external_port : Int32? = nil
- property default_user_preferences : ConfigPreferences
+ property default_user_preferences : ConfigPreferences = ConfigPreferences.from_yaml("")
property dmca_content : Array(String) = [] of String # For compliance with DMCA, disables download widget using list of video IDs
property check_tables : Bool = false # Check table integrity, automatically try to add any missing columns, create tables, etc.
property cache_annotations : Bool = false # Cache annotations requested from IA, will not cache empty annotations or annotations that only contain cards