From 8b72481b8c6ec48eaeb8574c2ca78d91f1019784 Mon Sep 17 00:00:00 2001 From: Samantaz Fox Date: Thu, 13 Jan 2022 20:43:46 +0100 Subject: [PATCH] Fix comments "ReplyCount" is actually an Int, not a String. --- src/invidious/comments.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr index 50059fa2..256a294e 100644 --- a/src/invidious/comments.cr +++ b/src/invidious/comments.cr @@ -305,7 +305,7 @@ def template_youtube_comments(comments, locale, thin_mode, is_replies = false) if child["replies"]? replies_count_text = translate_count(locale, "comments_view_x_replies", - child["replies"]["replyCount"].as_s.to_i? || 0, + child["replies"]["replyCount"].as_i64 || 0, NumberFormatting::Separator )