Merge pull request #2323 from unixfox/fix-comments

Fix comments - related to #2322
このコミットが含まれているのは:
TheFrenchGhosty 2021-08-12 18:52:19 +00:00 committed by GitHub
コミット 3e4fab7070
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -570,7 +570,7 @@ def content_to_comment_html(content)
else
text = %(<a href="/watch?v=#{video_id}">#{text}</a>)
end
elsif url = run["navigationEndpoint"]["commandMetadata"]?.try &.["webCommandMetadata"]["url"].as_s
elsif url = run.dig?("navigationEndpoint", "commandMetadata", "webCommandMetadata", "url").try &.as_s
text = %(<a href="#{url}">#{text}</a>)
end
end