From b6b568f0a2ae984b7a587bd8dda9e622725efa6c Mon Sep 17 00:00:00 2001 From: aspalding Date: Mon, 30 Oct 2023 12:20:43 -0500 Subject: [PATCH] correctly resolve lint issue --- net/validators.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/validators.js b/net/validators.js index 55e93b6..4587f0f 100644 --- a/net/validators.js +++ b/net/validators.js @@ -151,7 +151,7 @@ function inboxActivity (req, res, next) { } } else if (Object.hasOwn(question, 'anyOf')) { const hasDuplicateVote = question._meta?.voteAndVoter[0].some(({ voter, voteName }) => { - return voter === activity.actor[0] && activity.object[0].name === voteName + return voter === activity.actor[0] && activity.object[0].name[0] === voteName }) if (hasDuplicateVote) { resLocal.status = 403