Invidious is an alternative front-end to YouTube
Fix preferences for new users
Omar Rotheaf8854f966d
diff --git a/src/invidious/helpers.cr b/src/invidious/helpers.crindex d3f85b30..86c50e5c 100644--- a/src/invidious/helpers.cr+++ b/src/invidious/helpers.cr@@ -766,6 +766,7 @@ def get_user(sid, client, headers, db, refresh = true)if refresh && Time.now - user.updated > 1.minuteuser = fetch_user(sid, client, headers, db)user_array = user.to_a+ user_array[5] = user_array[5].to_jsonargs = arg_array(user_array)db.exec("INSERT INTO users VALUES (#{args}) \