From a178463835e7c36d6947fb85d89a89083801e94f Mon Sep 17 00:00:00 2001 From: bopol Date: Fri, 21 May 2021 18:40:33 +0200 Subject: [PATCH] fix comments not loading (using a workaround: like count is always 0) --- 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 5d72503e..a0592cf6 100644 --- a/src/invidious/comments.cr +++ b/src/invidious/comments.cr @@ -185,7 +185,7 @@ def fetch_youtube_comments(id, db, cursor, format, locale, thin_mode, region, so json.field "published", published.to_unix json.field "publishedText", translate(locale, "`x` ago", recode_date(published, locale)) - json.field "likeCount", node_comment["likeCount"] + json.field "likeCount", 0 json.field "commentId", node_comment["commentId"] json.field "authorIsChannelOwner", node_comment["authorIsChannelOwner"]