mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-12 09:04:03 +02:00
Compare commits
1 Commits
SamantazFo
...
SamantazFo
Author | SHA1 | Date | |
---|---|---|---|
|
b0c9f87fbe |
@@ -32,7 +32,7 @@ module Invidious::Frontend::WatchPage
|
|||||||
return String.build(4000) do |str|
|
return String.build(4000) do |str|
|
||||||
str << "<form"
|
str << "<form"
|
||||||
str << " class=\"pure-form pure-form-stacked\""
|
str << " class=\"pure-form pure-form-stacked\""
|
||||||
str << " action='" << URI.encode_www_form(url) << "'"
|
str << " action='#{url}'"
|
||||||
str << " method='post'"
|
str << " method='post'"
|
||||||
str << " rel='noopener'"
|
str << " rel='noopener'"
|
||||||
str << " target='_blank'>"
|
str << " target='_blank'>"
|
||||||
|
@@ -20,7 +20,7 @@ module Invidious::Routes::Embed
|
|||||||
return error_template(500, ex)
|
return error_template(500, ex)
|
||||||
end
|
end
|
||||||
|
|
||||||
url = "/embed/#{first_playlist_video}?#{env.params.query}"
|
url = "/embed/#{first_playlist_video.id}?#{env.params.query}"
|
||||||
|
|
||||||
if env.params.query.size > 0
|
if env.params.query.size > 0
|
||||||
url += "?#{env.params.query}"
|
url += "?#{env.params.query}"
|
||||||
|
Reference in New Issue
Block a user