summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2020-04-10 11:49:18 -0500
committerOmar Roth <omarroth@protonmail.com>2020-04-10 11:49:18 -0500
commit920463f2ff04f4e749db5bf8d0607c7bfe4fb5eb (patch)
tree57ea4451d91f7dee01441a52a6430f992996fc6e /src
parentca1185d0be46e275688af705994ad64364d5b778 (diff)
downloadinvidious-920463f2ff04f4e749db5bf8d0607c7bfe4fb5eb.tar.gz
invidious-920463f2ff04f4e749db5bf8d0607c7bfe4fb5eb.tar.bz2
invidious-920463f2ff04f4e749db5bf8d0607c7bfe4fb5eb.zip
Fix playlist_ajax
Diffstat (limited to 'src')
-rw-r--r--src/invidious.cr4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 55974e4a..754d1513 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -1216,10 +1216,6 @@ post "/playlist_ajax" do |env|
error_message = {"error" => "Playlist cannot have more than 500 videos"}.to_json
next error_message
end
- else
- error_message = {"error" => "Unsupported action #{action}"}.to_json
- env.response.status_code = 400
- next error_message
end
video_id = env.params.query["video_id"]