From fa374c713d3a850c2fc7405a745f979c485b5858 Mon Sep 17 00:00:00 2001 From: Sebastian Webster Date: Thu, 12 Oct 2023 20:50:57 +1300 Subject: [PATCH] temp/getsingleimagecomment now returns isOwner property --- controllers/Temp.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/Temp.js b/controllers/Temp.js index 7ca7510b..4b216813 100644 --- a/controllers/Temp.js +++ b/controllers/Temp.js @@ -2120,7 +2120,8 @@ class TempController { datePosted: comment.datePosted, profileImageKey: result.profileImageKey, commentUpVoted: commentUpVoted, - commentDownVoted: commentDownVoted + commentDownVoted: commentDownVoted, + isOwner: String(comment.commenterId) === String(userId) }) sendResponse(nameSendBackObject) } else {