Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/renderer/helpers/api/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,8 @@ function parseLocalCommunityPost(post) {
postId: post.id,
authorThumbnails: post.author.thumbnails,
publishedTime: calculatePublishedDate(post.published.text),
voteCount: parseLocalSubscriberCount(post.vote_count.text),
// YouTube hides the vote/like count on posts when it is zero
voteCount: post.vote_count ? parseLocalSubscriberCount(post.vote_count.text) : 0,
postContent: parseLocalAttachment(post.attachment),
commentCount: replyCount,
author: post.author.name,
Expand Down