Skip to content

Commit

Permalink
Merge pull request #194 from SquareTable/193-pollpostprocessmultiplep…
Browse files Browse the repository at this point in the history
…ostdatafromoneowner-does-not-send-comment-count

PollPost.processMultiplePostDataFromOneOwner now sends comment count
  • Loading branch information
Sebastian-Webster authored Oct 10, 2023
2 parents 6f308e8 + d5d0d3f commit 800cbb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/PollPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ class PollPost {
downvoted: !!isDownvoted,
isOwner: postOwner._id.toString() === userRequesting._id.toString(),
interacted: !!isUpvoted || !!isDownvoted,
votedFor: pollVote?.vote || "None"
votedFor: pollVote?.vote || "None",
comments: post.comments ? post.comments.length : 0
}

if (isUpvoted) {
Expand Down

0 comments on commit 800cbb2

Please sign in to comment.