summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2022-01-13 20:46:43 +0100
committerGitHub <noreply@github.com>2022-01-13 20:46:43 +0100
commit042ff8da643e9304f4d2c7db8f0c3cdba82d35ee (patch)
tree165d007969aab271b2d0b032941ac66b7781afca /src
parentaa0724f20469d7c468d0f5b95a9ee9ca3a563c0c (diff)
parent8b72481b8c6ec48eaeb8574c2ca78d91f1019784 (diff)
downloadinvidious-042ff8da643e9304f4d2c7db8f0c3cdba82d35ee.tar.gz
invidious-042ff8da643e9304f4d2c7db8f0c3cdba82d35ee.tar.bz2
invidious-042ff8da643e9304f4d2c7db8f0c3cdba82d35ee.zip
Merge pull request #2813 from iv-org/SamantazFox-fix-comments
Fix youtube comments
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 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
)