Skip to content

Invidious is an alternative front-end to YouTube

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

Samantaz Fox059796c60d84
diff --cc src/invidious/comments.cr
index 3ae49aa6,91ea8607..1f8de657
--- a/src/invidious/comments.cr
+++ b/src/invidious/comments.cr
@@@ -143,11 -143,9 +143,11 @@@ def fetch_youtube_comments(id, cursor,
node_comment = node["commentRenderer"]
end
- content_html = node_comment["contentText"]?.try { |t| parse_content(t) } || ""
+ content_html = node_comment["contentText"]?.try { |t| parse_content(t, id) } || ""
author = node_comment["authorText"]?.try &.["simpleText"]? || ""
+ json.field "verified", (node_comment["authorCommentBadge"]? != nil)
+
json.field "author", author
json.field "authorThumbnails" do
json.array do