Invidious is an alternative front-end to YouTube
Make sure pinnedCommentBadge isn't equal to false
ChunkyProgrammere0c70d34cc3f
diff --git a/src/invidious/comments.cr b/src/invidious/comments.crindex 357a461c..41b0efa8 100644--- a/src/invidious/comments.cr+++ b/src/invidious/comments.cr@@ -181,7 +181,7 @@ def fetch_youtube_comments(id, cursor, format, locale, thin_mode, region, sort_bjson.field "content", html_to_content(content_html)json.field "contentHtml", content_html- json.field "isPinned", (node_comment["pinnedCommentBadge"]? != nil)+ json.field "isPinned", (node_comment["pinnedCommentBadge"]?.try(&.as_bool) == true)json.field "published", published.to_unixjson.field "publishedText", translate(locale, "`x` ago", recode_date(published, locale))