diff options
| author | syeopite <syeopite@syeopite.dev> | 2021-09-03 03:30:36 -0700 |
|---|---|---|
| committer | syeopite <syeopite@syeopite.dev> | 2021-09-03 03:30:36 -0700 |
| commit | fd6f03655eacdbd1dc3718017bb42793ee77fd47 (patch) | |
| tree | 5cc1eb89b6f8fc7be22afac204280039dc3a3f27 | |
| parent | 8b62c05fe2df979bd1d1b53cde4b86ad318cb760 (diff) | |
| download | invidious-fd6f03655eacdbd1dc3718017bb42793ee77fd47.tar.gz invidious-fd6f03655eacdbd1dc3718017bb42793ee77fd47.tar.bz2 invidious-fd6f03655eacdbd1dc3718017bb42793ee77fd47.zip | |
Fix typo causing links to be youtube.com/redirect
| -rw-r--r-- | src/invidious/comments.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr index 3a4328a5..6dc27639 100644 --- a/src/invidious/comments.cr +++ b/src/invidious/comments.cr @@ -554,7 +554,7 @@ def content_to_comment_html(content) if url.host == "youtu.be" 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" url = HTTP::Params.parse(url.query.not_nil!)["q"] else |
