Post Re Implemented

This commit is contained in:
Luis Fernando Molina committed 2021-08-29 10:35:41 +02:00
1 parent af332691d5
commit 4aa11efddf
9 files changed
+60 -63

No files matched your search

+1 -6
View File
@@ -129,13 +129,8 @@ exports.newProfilePosts = function newProfilePosts() {
postType: post.postType,
timestamp: post.timestamp,
repliesCount: post.replies.length,
reactionsCount: []
reactions: Array.from(post.reactions)
}
for (let i = 0; i < post.reactionTypesCount; i++) {
postResponse.reactionsCount.push(post.reactionsCount.get(i))
}
response.push(postResponse)
}
}