summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/invidious/comments.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr
index 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_b
json.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_unix
json.field "publishedText", translate(locale, "`x` ago", recode_date(published, locale))