Merge pull request #2719 from SamantazFox/batch-minor-fixes

Multiple minor fixes
This commit is contained in:
Samantaz Fox
2022-01-05 17:20:57 +01:00
committed by GitHub
11 changed files with 47 additions and 66 deletions

View File

@@ -945,7 +945,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).gsub("\n", "<br/>") }
.try &.as_a.try { |t| content_to_comment_html(t) }
params["descriptionHtml"] = JSON::Any.new(description_html || "<p></p>")