From eaf8854f966d826c1287141412f145efdaefa359 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 18 Jul 2018 15:40:50 -0500 Subject: [PATCH] Fix preferences for new users --- src/invidious/helpers.cr | 1 + 1 file changed, 1 insertion(+) diff --git a/src/invidious/helpers.cr b/src/invidious/helpers.cr index 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.minute user = fetch_user(sid, client, headers, db) user_array = user.to_a + user_array[5] = user_array[5].to_json args = arg_array(user_array) db.exec("INSERT INTO users VALUES (#{args}) \