Hi, i’m making some kind a 9gag copy app, and on my homepage there are posts where users can vote up or down depending whether they like it or not, but problem is one user can make unlimited votes, How can i limit to one vote per user?
Create a reference that you set when the user uses its vote. This way you can check if the reference is empty before setting it.
First of all you will need the voters to be authenticated. Second you need to assign each post to a voter when up- or down-voted.