diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-04-03 22:09:53 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-04-03 22:09:53 -0500 |
| commit | 815aeeb29c945d2f499f0cd1917d0e6b3072ca86 (patch) | |
| tree | 169dec4bcd99d9d1517daedb6bfb25a110b38f04 /src | |
| parent | c3ac257dbf0b5909f18c841d8382cacb059b4b96 (diff) | |
| download | invidious-815aeeb29c945d2f499f0cd1917d0e6b3072ca86.tar.gz invidious-815aeeb29c945d2f499f0cd1917d0e6b3072ca86.tar.bz2 invidious-815aeeb29c945d2f499f0cd1917d0e6b3072ca86.zip | |
Fix subscriptions on watch page
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 2 |
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) |
