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 / community blocking. Fixes #426 #1604

Merged
merged 15 commits into from
Aug 19, 2021
Merged

User / community blocking. Fixes #426 #1604

merged 15 commits into from
Aug 19, 2021

Conversation

dessalines
Copy link
Member

@dessalines dessalines commented May 9, 2021

There are several breaking API changes, which are more easily viewed here: LemmyNet/lemmy-js-client#22

I'll review this now to go over the main changes.

@dessalines dessalines force-pushed the user_community_blocking branch 2 times, most recently from 208f2f9 to 4a5787b Compare August 11, 2021 16:48
@dessalines dessalines changed the title A first pass at user / community blocking. #426 User / community blocking. #426 Aug 11, 2021
@dessalines dessalines changed the title User / community blocking. #426 User / community blocking. Fixes #426 Aug 11, 2021
Copy link
Member Author

@dessalines dessalines left a comment

Choose a reason for hiding this comment

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

@Nutomic here's some comments

}
}

// TODO does any federated stuff need to be done here?
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure if we want to federate any of this, I'm guessing no.

Copy link
Member

Choose a reason for hiding this comment

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

We could send an unsubscribe to the community. That way, if the local user was the only follower of a remote community, it wont try to deliver its posts to the instance (where they would be ignored).

Copy link
Member Author

Choose a reason for hiding this comment

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

Hrm... for now lets let unsubscribe be its own activity.

Copy link
Member

Choose a reason for hiding this comment

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

I mean sending an Undo/Follow to the community, i'm not proposing any changes to the apub code.

Copy link
Member Author

Choose a reason for hiding this comment

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

Okay, I just added unfollowing that community and sending the abup undofollowcommunity

crates/api/src/lib.rs Show resolved Hide resolved
crates/api/src/lib.rs Show resolved Hide resolved
crates/api/src/post.rs Show resolved Hide resolved
crates/api/src/site.rs Show resolved Hide resolved
crates/api_crud/src/private_message/create.rs Show resolved Hide resolved
crates/db_views/src/post_view.rs Show resolved Hide resolved
crates/db_views/src/post_view.rs Show resolved Hide resolved
crates/db_views/src/post_view.rs Show resolved Hide resolved
@dessalines dessalines marked this pull request as ready for review August 11, 2021 17:43
@dessalines dessalines requested a review from Nutomic August 11, 2021 17:43
@Nutomic
Copy link
Member

Nutomic commented Aug 12, 2021

After a quick look over it, looks fine except for some minor things. In general I would prefer if you try to put the comments you added here directly into the code instead. If someone in the future wants to understand what it does, they will read the code and not an old PR.

@dessalines dessalines force-pushed the user_community_blocking branch from 724624a to 5bcd39e Compare August 13, 2021 13:43
@dessalines dessalines requested a review from Nutomic August 13, 2021 13:43
@dessalines dessalines force-pushed the user_community_blocking branch from 9e5efc0 to 8b0a8ba Compare August 17, 2021 18:19
@dessalines dessalines force-pushed the user_community_blocking branch from 8b0a8ba to 7e45d9a Compare August 19, 2021 20:50
@Nutomic Nutomic merged commit 2016afc into main Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants