format comment like number

This commit is contained in:
simon 2022-11-18 09:51:18 +07:00
parent 31c967cc11
commit b5ceb264ec
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 2 additions and 1 deletions

View File

@ -1167,7 +1167,8 @@ function createCommentBox(comment, isRoot) {
commentMeta.innerHTML = `<span>${comment.comment_time_text}</span>`;
if (comment.comment_likecount > 0) {
commentMeta.innerHTML += `${spacer}<span class="thumb-icon"><img src="/static/img/icon-thumb.svg"> ${comment.comment_likecount}</span>`;
let numberFormatted = formatNumbers(comment.comment_likecount)
commentMeta.innerHTML += `${spacer}<span class="thumb-icon"><img src="/static/img/icon-thumb.svg"> ${numberFormatted}</span>`;
}
if (comment.comment_is_favorited) {