mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
fix comments using dig
This commit is contained in:
parent
88c5e3b6fa
commit
6745ca7775
1 changed files with 1 additions and 1 deletions
|
@ -570,7 +570,7 @@ def content_to_comment_html(content)
|
||||||
else
|
else
|
||||||
text = %(<a href="/watch?v=#{video_id}">#{text}</a>)
|
text = %(<a href="/watch?v=#{video_id}">#{text}</a>)
|
||||||
end
|
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>)
|
text = %(<a href="#{url}">#{text}</a>)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue