Skip to content

London | 25-SDC-Nov | Jesus del Moral | Sprint 1 | Implement unfollow feature#188

Open
delmorallopez wants to merge 1 commit intoCodeYourFuture:mainfrom
delmorallopez:unfollow
Open

London | 25-SDC-Nov | Jesus del Moral | Sprint 1 | Implement unfollow feature#188
delmorallopez wants to merge 1 commit intoCodeYourFuture:mainfrom
delmorallopez:unfollow

Conversation

@delmorallopez
Copy link
Copy Markdown

This PR implements the ability for users to unfollow other users, improving control over their timeline and social graph

@delmorallopez delmorallopez added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 18, 2026
Copy link
Copy Markdown
Member

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

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

Generally looks good, two small questions!

Comment thread backend/data/follows.py
Comment on lines +25 to +26
if follow_user is None:
return
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Doing nothing if the user doesn't exist kind of works, but also kind of doesn't.

On the plus side, the request didn't make sense, so we didn't do anything wrong.
On the down side, maybe the user actually wanted to follow someone new, and by ignoring their request, we haven't told them they probably made a mistake in their request.

How do you think is the best way to handle this?

Comment thread backend/data/users.py
)


def unfollow(*, follower: User, follow_username: str):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It seems strange that you would have two different copies of this same code in different functions - why do you?

@illicitonion illicitonion added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants