diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-08-05 12:43:54 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-08-05 12:43:54 -0500 |
| commit | 61f9e8667c4857aff59a7a9b2ce595badd3d36a3 (patch) | |
| tree | 6eb9c342e0e54b5a3a0990092152ffe573521e32 /src | |
| parent | 1e7873d8e9bc669c19d94d1660eb82112acb80b3 (diff) | |
| download | invidious-61f9e8667c4857aff59a7a9b2ce595badd3d36a3.tar.gz invidious-61f9e8667c4857aff59a7a9b2ce595badd3d36a3.tar.bz2 invidious-61f9e8667c4857aff59a7a9b2ce595badd3d36a3.zip | |
Always redirect to referer for '/subscription_ajax'
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 767b8512..70e243a7 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1033,7 +1033,7 @@ get "/subscription_ajax" do |env| if match session_token = match["session_token"] else - next env.redirect "/" + next env.redirect referer end headers["content-type"] = "application/x-www-form-urlencoded" @@ -2031,10 +2031,10 @@ get "/api/v1/trending" do |env| json.field "lengthSeconds", length_seconds json.field "viewCount", view_count - + json.field "author", author json.field "authorUrl", author_url - + json.field "published", published json.field "description", description json.field "descriptionHtml", descriptionHtml |
