Pressing an Instagram like button multiple times

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:
ezgif.com-gif-maker (7)

here’s a cloneable link to see how it’s built.

To make this work:

  1. create a data collection (likes) this is where you keep record of each user’s likes count for a particular post.
  2. add an icon that should be the trigger when the logged in user hasn’t liked this post yet.
  3. make it visible only when current posts > likes > users does not contain logged in user.
  4. when clicked, it CREATEs a like where the user is the current user, post is current post and count is 1.
  5. 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.
  6. when clicked, current likes count is increased by 1.
1 Like