summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-04-03 22:09:53 -0500
committerOmar Roth <omarroth@hotmail.com>2018-04-03 22:09:53 -0500
commit815aeeb29c945d2f499f0cd1917d0e6b3072ca86 (patch)
tree169dec4bcd99d9d1517daedb6bfb25a110b38f04
parentc3ac257dbf0b5909f18c841d8382cacb059b4b96 (diff)
downloadinvidious-815aeeb29c945d2f499f0cd1917d0e6b3072ca86.tar.gz
invidious-815aeeb29c945d2f499f0cd1917d0e6b3072ca86.tar.bz2
invidious-815aeeb29c945d2f499f0cd1917d0e6b3072ca86.zip
Fix subscriptions on watch page
-rw-r--r--src/invidious.cr2
1 files changed, 1 insertions, 1 deletions
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)