Skip to content

Commit

Permalink
Hide comment count on individual post page
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkyProgrammer committed Sep 2, 2024
1 parent 93a0023 commit 968fa06
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default defineComponent({
voteCount: 0,
formattedVoteCount: '',
postContent: '',
commentCount: 0,
commentCount: null,
formattedCommentCount: '',
author: '',
authorId: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
/> {{ formattedCommentCount }}</span>
</router-link>
<span
v-else
v-else-if="commentCount != null"
class="commentCount"
:title="$tc('Global.Counts.Comment Count', commentCount, {count: formattedCommentCount})"
:aria-label="$tc('Global.Counts.Comment Count', commentCount, {count: formattedCommentCount})"
Expand Down
1 change: 1 addition & 0 deletions src/renderer/helpers/api/invidious.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ export async function getInvidiousCommunityPost(postId, authorId = null) {

const post = parseInvidiousCommunityData(response.comments[0])
post.authorId = authorId
post.commentCount = null

return post
}
Expand Down

0 comments on commit 968fa06

Please sign in to comment.