Skip to content

Commit

Permalink
ThreadPost.processMultiplePostDataFromOneOwner now sends comment count
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-Webster committed Oct 10, 2023
1 parent 7c6ed4b commit 4415e5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/ThreadPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ class ThreadPost {
isOwner: postOwner._id.toString() === userRequesting._id.toString(),
interacted: !!isUpvoted || !!isDownvoted,
_id: String(post._id),
threadCategory: category.categoryTitle
threadCategory: category.categoryTitle,
comments: post.comments.length
}

if (isUpvoted) {
Expand Down

0 comments on commit 4415e5f

Please sign in to comment.