lemmy/crates/db_schema/src
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
..
aggregates Post view: move cursor pagination to separate library, add backward pagination to PostQuery (#4320) 2024-01-24 10:50:11 -05:00
impls When site banning a federated user, also remove their content from our local communities. (#4464) 2024-03-01 13:45:06 -05:00
source Adding ability to hide posts. (#4480) 2024-02-29 10:42:34 -05:00
diesel_ltree.patch Adding a post_view mode. Fixes #3730 (#3731) 2023-08-31 09:01:08 -04:00
lib.rs Add site.content_warning, local_site.default_post_listing_mode (#4393) 2024-02-16 07:24:35 -05:00
newtypes.rs Move DbUrl trait impls to newtypes.rs (#4463) 2024-02-19 12:41:28 -05:00
schema.rs Adding ability to hide posts. (#4480) 2024-02-29 10:42:34 -05:00
traits.rs Auto resolve reports on removing a comment or post. Fixes #4390 (#4402) 2024-02-15 08:52:04 -05:00
utils.rs Adding some recommended fixes from nightly clippy. (#4473) 2024-02-26 09:47:10 -05:00