Skip to content

Follow and Unfollow functionality not working #93

@husainiitbhu21

Description

@husainiitbhu21

Problem: The Follow and Unfollow methods incorrectly handle user relationships. In the Follow method, the authenticated user is mistakenly set as the user to be followed instead of following another user, reversing the intended relationship. Similarly, in the Unfollow method, the logic does not remove the follower relationship between users.

Impact: This results in incorrect user relationship data being stored in the database, breaking core social interaction functionalities.

Solution: I have corrected the logic in both follow and unfollow endpoints #92

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions