Skip to content

Implement federated bans (fixes #1298)#1553

Merged
dessalines merged 7 commits intomainfrom
feature/1298-federated-bans
Apr 9, 2021
Merged

Implement federated bans (fixes #1298)#1553
dessalines merged 7 commits intomainfrom
feature/1298-federated-bans

Conversation

@Nutomic
Copy link
Copy Markdown
Member

@Nutomic Nutomic commented Apr 6, 2021

No description provided.

@Nutomic Nutomic marked this pull request as ready for review April 9, 2021 12:32
@Nutomic
Copy link
Copy Markdown
Member Author

Nutomic commented Apr 9, 2021

This is ready to review/merge. Everything works fine during manual testing, including ban/unban actions from remote community mods.

The changes are fully backwards compatible, so this can be backported to stable.

Copy link
Copy Markdown
Member

@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.

Looks good, but the tests are failing.

blocked_user: Person,
context: &LemmyContext,
) -> Result<(), LemmyError> {
let mut block = Block::new(actor.actor_id(), blocked_user.actor_id());
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.

Makes sense, never realized a ban is basically a community blocking a user. This might be usable for the eventual user <-> user blocks too.

@Nutomic
Copy link
Copy Markdown
Member Author

Nutomic commented Apr 9, 2021

Fixed.

@dessalines dessalines merged commit aa79c51 into main Apr 9, 2021
@Nothing4You Nothing4You deleted the feature/1298-federated-bans branch September 11, 2025 17:32
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.

2 participants