Skip to content

Commit

Permalink
correctly resolve lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aspalding committed Oct 30, 2023
1 parent 9f1e1fb commit b6b568f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/validators.js
Expand Up @@ -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
Expand Down

0 comments on commit b6b568f

Please sign in to comment.