mirror of
https://github.com/iv-org/invidious
synced 2024-11-09 01:10:27 +00:00
Always redirect to referer for '/subscription_ajax'
This commit is contained in:
parent
1e7873d8e9
commit
61f9e8667c
@ -1033,7 +1033,7 @@ get "/subscription_ajax" do |env|
|
|||||||
if match
|
if match
|
||||||
session_token = match["session_token"]
|
session_token = match["session_token"]
|
||||||
else
|
else
|
||||||
next env.redirect "/"
|
next env.redirect referer
|
||||||
end
|
end
|
||||||
|
|
||||||
headers["content-type"] = "application/x-www-form-urlencoded"
|
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 "lengthSeconds", length_seconds
|
||||||
json.field "viewCount", view_count
|
json.field "viewCount", view_count
|
||||||
|
|
||||||
json.field "author", author
|
json.field "author", author
|
||||||
json.field "authorUrl", author_url
|
json.field "authorUrl", author_url
|
||||||
|
|
||||||
json.field "published", published
|
json.field "published", published
|
||||||
json.field "description", description
|
json.field "description", description
|
||||||
json.field "descriptionHtml", descriptionHtml
|
json.field "descriptionHtml", descriptionHtml
|
||||||
|
Loading…
Reference in New Issue
Block a user