Skip to content

Barcelona | OCT-2025-2 | Iheb Hamdi | Sprint 1 | Module-Legacy-Code - #1

Open
hamdiheb wants to merge 4 commits into
mainfrom
feature/unfollow
Open

Barcelona | OCT-2025-2 | Iheb Hamdi | Sprint 1 | Module-Legacy-Code#1
hamdiheb wants to merge 4 commits into
mainfrom
feature/unfollow

Conversation

@hamdiheb

Copy link
Copy Markdown
Owner

Summary

This PR adds support for unfollowing users from their profile page.

Changes

Frontend

  • Added an Unfollow button to the Profile component.
  • Display the Follow or Unfollow button depending on whether the current user is already following the profile.
  • Added handleUnfollow() to call the API service.
  • Extended the API service with unfollowUser().

Backend

  • Added an unfollow() function to the data layer to remove follow relationships.
  • Added a new do_unfollow() endpoint.
  • Registered the /unfollow/<profile_username> route.

@hamdiheb hamdiheb changed the title Feature/unfollow Barcelona | OCT-2025-2 | Iheb Hamdi | Sprint 1 | Module-Legacy-Code Jul 15, 2026
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.

1 participant