Fix typo causing links to be youtube.com/redirect

このコミットが含まれているのは:
syeopite 2021-09-03 03:30:36 -07:00
コミット fd6f03655e
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 6FA616E5A5294A82
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -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