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

feat: add the dislike functionality #1352

Merged
merged 9 commits into from
Mar 2, 2025

Conversation

victormayowa
Copy link
Contributor

Pull Request

Description

This PR adds the dislike functionality to the application. Users can now dislike posts/comments, and their preferences are stored in the database. This feature complements the existing like functionality and allows users to express disapproval on content.

Related Issue

Feature #(1274)

Type of Change

  • feat: New feature (add the dislike functionality)

How Has This Been Tested?

  • Unit tests
  • Integration tests
  • Manual tests

Test Evidence

Screenshots (if applicable)

Documentation Screenshots (if applicable)

Checklist

  • My code follows the project's coding style
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published
  • I have included a screenshot showing all tests passing
  • I have included documentation screenshots (if applicable)

Additional Notes

  • API endpoint: POST /api/v1/posts/:id/dislike

@TheCodeGhinux TheCodeGhinux merged commit 5c1fd59 into hngprojects:dev Mar 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants