mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Fix typo causing links to be youtube.com/redirect
This commit is contained in:
parent
8b62c05fe2
commit
fd6f03655e
1 changed files with 1 additions and 1 deletions
|
@ -554,7 +554,7 @@ def content_to_comment_html(content)
|
||||||
|
|
||||||
if url.host == "youtu.be"
|
if url.host == "youtu.be"
|
||||||
url = "/watch?v=#{url.request_target.lstrip('/')}"
|
url = "/watch?v=#{url.request_target.lstrip('/')}"
|
||||||
elsif !url.host || {"m.youtube.com", "www.youtube.com"}.includes? url
|
elsif !url.host || {"m.youtube.com", "www.youtube.com"}.includes? url.host
|
||||||
if url.path == "/redirect"
|
if url.path == "/redirect"
|
||||||
url = HTTP::Params.parse(url.query.not_nil!)["q"]
|
url = HTTP::Params.parse(url.query.not_nil!)["q"]
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue