From 815aeeb29c945d2f499f0cd1917d0e6b3072ca86 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 3 Apr 2018 22:09:53 -0500 Subject: [PATCH] Fix subscriptions on watch page --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 7651612c..af070b6f 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -222,7 +222,7 @@ get "/watch" do |env| subscriptions = PG_DB.query_one?("SELECT subscriptions FROM users WHERE id = $1", sid, as: Array(String)) end - subscriptions = [] of String + subscriptions ||= [] of String begin video = get_video(id, client, PG_DB)