summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/invidious/helpers.cr1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/invidious/helpers.cr b/src/invidious/helpers.cr
index 86c50e5c..5734aa3a 100644
--- a/src/invidious/helpers.cr
+++ b/src/invidious/helpers.cr
@@ -775,6 +775,7 @@ def get_user(sid, client, headers, db, refresh = true)
else
user = fetch_user(sid, client, headers, db)
user_array = user.to_a
+ user_array[5] = user_array[5].to_json
args = arg_array(user.to_a)
db.exec("INSERT INTO users VALUES (#{args}) \