hi @Jonathan10,
I think it’s simpler than it seems. Rozza has it right. I recreated the case and I’m on the free plan, check it out:
here’s a cloneable link to see how it’s built.
To make this work:
- create a data collection (likes) this is where you keep record of each user’s likes count for a particular post.
- add an icon that should be the trigger when the logged in user hasn’t liked this post yet.
- make it visible only when current posts > likes > users does not contain logged in user.
- when clicked, it CREATEs a like where the user is the current user, post is current post and count is 1.
- create an icon that shows when user has liked post at least once, put the count beside it and make it a list of likes (current posts likes > user email = logged in user email) this will only have one result at any point in time, so don’t worry about it being a list. But we need a list to be able to increase the count.
- when clicked, current likes count is increased by 1.