Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User can like posts #11

Merged
merged 10 commits into from
Jun 13, 2024
Merged

User can like posts #11

merged 10 commits into from
Jun 13, 2024

Conversation

wimdavies
Copy link
Owner

  • List of likes on Post model
  • likes is a bigint[] on the db
  • Add LikesController to handle PATCH requests to /posts/{id}/likes
  • Add counter to display likes
  • Add form to submit like button clicks
  • If a user hasn't liked yet, their user_id is added to the list
  • If they have, it isn't

Copy link
Collaborator

@Destinek Destinek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work!

Copy link
Collaborator

@charliegiaretta charliegiaretta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All working - great work!

@Destinek Destinek merged commit 505f08a into main Jun 13, 2024
@Destinek Destinek deleted the likes branch June 13, 2024 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants