Invidious is an alternative front-end to YouTube
Comments: Revert "isPinned" to a nil check
Samantaz Fox87342e4efd42
diff --git a/src/invidious/comments.cr b/src/invidious/comments.crindex 41b0efa8..357a461c 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"]?.try(&.as_bool) == true)+ json.field "isPinned", (node_comment["pinnedCommentBadge"]? != nil)json.field "published", published.to_unixjson.field "publishedText", translate(locale, "`x` ago", recode_date(published, locale))