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