Skip to content

Commit a3bd506

Browse files
Merge pull request #471 from SquareTable/470-remove-viewedby-from-image-post-processor
Remove viewedBy field in image post processor
2 parents 035c5fb + 5b616db commit a3bd506

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/ImagePost.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class ImagePostClass {
1212
Promise.all(
1313
posts.map(post => {
1414
delete post.creatorId
15+
delete post.viewedBy
1516
return new Promise((resolve, reject) => {
1617
Promise.all([
1718
Upvote.countDocuments({postId: {$eq: post._id}, postFormat: "Image"}),

0 commit comments

Comments
 (0)