Skip to content

Commit

Permalink
Merge pull request #192 from SquareTable/191-threadpostprocessmultipl…
Browse files Browse the repository at this point in the history
…epostdatafromoneowner-does-not-send-comment-count

ThreadPost.processMultiplePostDataFromOneOwner now sends comment count
  • Loading branch information
Sebastian-Webster authored Oct 10, 2023
2 parents 7c6ed4b + 4415e5f commit 6f308e8
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 6f308e8

Please sign in to comment.