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
2024-03-01 13:45:06 -05:00
..
notifications Fix up convert more responses to SuccessResponse (#4066) 2023-10-19 20:15:55 -04:00
add_admin.rs Fix up convert more responses to SuccessResponse (#4066) 2023-10-19 20:15:55 -04:00
ban_person.rs When site banning a federated user, also remove their content from our local communities. (#4464) 2024-03-01 13:45:06 -05:00
block.rs Fix up convert more responses to SuccessResponse (#4066) 2023-10-19 20:15:55 -04:00
change_password.rs Add db table for login tokens which allows for invalidation (#3818) 2023-10-09 12:46:12 +02:00
change_password_after_reset.rs Remove empty API responses (#3993) 2023-10-16 12:36:53 -04:00
generate_totp_secret.rs Rework the way 2FA is enabled/disabled (fixes #3309) (#3959) 2023-09-20 10:49:54 -04:00
get_captcha.rs Dont allow caching captcha response (#4381) 2024-01-19 10:41:05 -05:00
list_banned.rs Remove explicit auth params (#3946) 2023-09-21 06:42:28 -04:00
list_logins.rs Add db table for login tokens which allows for invalidation (#3818) 2023-10-09 12:46:12 +02:00
login.rs Require verified email to reset password (#4482) 2024-02-29 09:12:45 -05:00
logout.rs Change logout endpoint to return SuccessResponse (#4121) 2023-10-31 08:41:52 -04:00
mod.rs Require verified email to reset password (#4482) 2024-02-29 09:12:45 -05:00
report_count.rs Fixing issue with mods not being able to view reports. Fixes #4172 (#4174) 2023-11-21 16:33:49 +01:00
reset_password.rs Require verified email to reset password (#4482) 2024-02-29 09:12:45 -05:00
save_settings.rs Rewrite images to use local proxy (#4035) 2024-01-25 09:22:11 -05:00
update_totp.rs Rework the way 2FA is enabled/disabled (fixes #3309) (#3959) 2023-09-20 10:49:54 -04:00
validate_auth.rs Revert "Dont ignore errors during login (fixes #4319) (#4321)" (#4380) 2024-01-19 11:21:43 -05:00
verify_email.rs Remove empty API responses (#3993) 2023-10-16 12:36:53 -04:00