Merge pull request #3076 from SamantazFox/fix-3062-3063

Fix regressions of #2936
This commit is contained in:
Samantaz Fox
2022-05-04 22:29:10 +02:00
committed by GitHub
4 changed files with 44 additions and 36 deletions

View File

@@ -1054,7 +1054,7 @@ def extract_video_info(video_id : String, proxy_region : String? = nil, context_
# Description
description_html = video_secondary_renderer.try &.dig?("description", "runs")
.try &.as_a.try { |t| content_to_comment_html(t) }
.try &.as_a.try { |t| content_to_comment_html(t, video_id) }
params["descriptionHtml"] = JSON::Any.new(description_html || "<p></p>")