On my web app, I have created a upvote and downvote system. However, the user has unlimited votes. They can essentially upvote or downvote as many times as they desire. Any ideas on how to limit the users vote to one - user gets one vote per post.
create a vote data type that looks up to user and post. it should be created whenever a user votes on a post. the condition on the upvote button will be “when Search for votes(user = current user and post = current post):count > 0” this element is not visible.