Skip to content

Commit

Permalink
temp/getimagepostcomments now returns isOwner property
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-Webster committed Oct 12, 2023
1 parent 1c0f51f commit 023acf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/Temp.js
Original file line number Diff line number Diff line change
Expand Up @@ -1865,7 +1865,8 @@ class TempController {
datePosted: comment.datePosted,
profileImageKey: commentCreator.profileImageKey,
commentUpVoted: commentUpVoted,
commentDownVoted: commentDownVoted
commentDownVoted: commentDownVoted,
isOwner: String(comment.commenterId) === String(userId)
})
} else {
console.error('A comment was found from user with id:', comment.commenterId, ' but the user with that id could not be found. This comment should be deleted immediately.')
Expand Down

0 comments on commit 023acf0

Please sign in to comment.