From b5ceb264ecc7f3b140d2214f4beaaa3075dfffdd Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 18 Nov 2022 09:51:18 +0700 Subject: [PATCH] format comment like number --- tubearchivist/static/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tubearchivist/static/script.js b/tubearchivist/static/script.js index 47a28de2..7e760bf8 100644 --- a/tubearchivist/static/script.js +++ b/tubearchivist/static/script.js @@ -1167,7 +1167,8 @@ function createCommentBox(comment, isRoot) { commentMeta.innerHTML = `${comment.comment_time_text}`; if (comment.comment_likecount > 0) { - commentMeta.innerHTML += `${spacer} ${comment.comment_likecount}`; + let numberFormatted = formatNumbers(comment.comment_likecount) + commentMeta.innerHTML += `${spacer} ${numberFormatted}`; } if (comment.comment_is_favorited) {