You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lemmy/crates/api/src/local_user
Dessalines 7eec8714d7
When site banning a federated user, also remove their content from our local communities. (#4464)
* When banning a federated user, also remove their content from our local
communities.

- This works by:
  - Before a site ban, find all posts and comments to local communities
  - Send a federated community ban action for each local comm.
  - This also removes their content in the apub receive code.
- Adding back in federated community ban api tests.
- Adding in two more api tests for site bans.
- Fixes #4118

* Add local community ban, and nonlocal person check.

* Ignoring errors.

* Move local check into function.

* Addressing PR comments 2
3 months ago
..
notifications Fix up convert more responses to SuccessResponse (#4066) 7 months ago
add_admin.rs Fix up convert more responses to SuccessResponse (#4066) 7 months ago
ban_person.rs When site banning a federated user, also remove their content from our local communities. (#4464) 3 months ago
block.rs Fix up convert more responses to SuccessResponse (#4066) 7 months ago
change_password.rs Add db table for login tokens which allows for invalidation (#3818) 8 months ago
change_password_after_reset.rs Remove empty API responses (#3993) 8 months ago
generate_totp_secret.rs Rework the way 2FA is enabled/disabled (fixes #3309) (#3959) 8 months ago
get_captcha.rs Dont allow caching captcha response (#4381) 4 months ago
list_banned.rs Remove explicit auth params (#3946) 8 months ago
list_logins.rs Add db table for login tokens which allows for invalidation (#3818) 8 months ago
login.rs Require verified email to reset password (#4482) 3 months ago
logout.rs Change logout endpoint to return SuccessResponse (#4121) 7 months ago
mod.rs Require verified email to reset password (#4482) 3 months ago
report_count.rs Fixing issue with mods not being able to view reports. Fixes #4172 (#4174) 6 months ago
reset_password.rs Require verified email to reset password (#4482) 3 months ago
save_settings.rs Rewrite images to use local proxy (#4035) 4 months ago
update_totp.rs Rework the way 2FA is enabled/disabled (fixes #3309) (#3959) 8 months ago
validate_auth.rs Revert "Dont ignore errors during login (fixes #4319) (#4321)" (#4380) 4 months ago
verify_email.rs Remove empty API responses (#3993) 8 months ago