diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 75015d8f5..000000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,3 +0,0 @@ -# Contributing - -See [here](https://join-lemmy.org/docs/en/contributors/01-overview.html) for contributing Instructions. diff --git a/README.md b/README.md index 524b7cf69..96c19bc03 100644 --- a/README.md +++ b/README.md @@ -137,17 +137,22 @@ Lemmy is made possible by a generous grant from the [NLnet foundation](https://n ## Contributing +Read the following documentation to setup the development environment and start coding: + - [Contributing instructions](https://join-lemmy.org/docs/contributors/01-overview.html) - [Docker Development](https://join-lemmy.org/docs/contributors/03-docker-development.html) - [Local Development](https://join-lemmy.org/docs/contributors/02-local-development.html) +When working on an issue or pull request, you can comment with any questions you may have so that maintainers can answer them. You can also join the [Matrix Development Chat](https://matrix.to/#/#lemmydev:matrix.org) for general assistance. + ### Translations - If you want to help with translating, take a look at [Weblate](https://weblate.join-lemmy.org/projects/lemmy/). You can also help by [translating the documentation](https://github.com/LemmyNet/lemmy-docs#adding-a-new-language). -## Contact +## Community -- [Mastodon](https://mastodon.social/@LemmyDev) +- [Matrix Space](https://matrix.to/#/#lemmy-space:matrix.org) +- [Lemmy Forum](https://lemmy.ml/c/lemmy) - [Lemmy Support Forum](https://lemmy.ml/c/lemmy_support) ## Code Mirrors diff --git a/crates/api/src/site/purge/person.rs b/crates/api/src/site/purge/person.rs index 5611d0ce3..183ee7b71 100644 --- a/crates/api/src/site/purge/person.rs +++ b/crates/api/src/site/purge/person.rs @@ -1,3 +1,4 @@ +use crate::ban_nonlocal_user_from_local_communities; use activitypub_federation::config::Data; use actix_web::web::Json; use lemmy_api_common::{ @@ -28,6 +29,18 @@ pub async fn purge_person( purge_local_user_images(data.person_id, &context).await.ok(); + let person = Person::read(&mut context.pool(), data.person_id).await?; + ban_nonlocal_user_from_local_communities( + &local_user_view, + &person, + true, + &data.reason, + &Some(true), + &None, + &context, + ) + .await?; + // Clear profile data. Person::delete_account(&mut context.pool(), data.person_id).await?; // Keep person record, but mark as banned to prevent login or refetching from home instance.