summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheFrenchGhosty <47571719+TheFrenchGhosty@users.noreply.github.com>2021-08-12 18:52:19 +0000
committerGitHub <noreply@github.com>2021-08-12 18:52:19 +0000
commit3e4fab70700b6fad9767f008e2c80c1f0c5bf757 (patch)
tree9a2b5ff7bd26dc436e240199f9eb2abaaa279a90
parent88c5e3b6fad59e8cc4f506db665b848d7dc78242 (diff)
parent6745ca77757d88303cf8b15aafd2a75f43376afc (diff)
downloadinvidious-3e4fab70700b6fad9767f008e2c80c1f0c5bf757.tar.gz
invidious-3e4fab70700b6fad9767f008e2c80c1f0c5bf757.tar.bz2
invidious-3e4fab70700b6fad9767f008e2c80c1f0c5bf757.zip
Merge pull request #2323 from unixfox/fix-comments
Fix comments - related to #2322
-rw-r--r--src/invidious/comments.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr
index bbdb5370..141a526d 100644
--- a/src/invidious/comments.cr
+++ b/src/invidious/comments.cr
@@ -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