]> Untitled Git - lemmy.git/commit
Adding admin purging of DB items and pictures. #904 #1331 (#1809)
authorDessalines <dessalines@users.noreply.github.com>
Mon, 13 Jun 2022 19:15:04 +0000 (15:15 -0400)
committerGitHub <noreply@github.com>
Mon, 13 Jun 2022 19:15:04 +0000 (19:15 +0000)
commit4e12e25c59beef296c750fec640b0b80c4c11de9
treeac00de7a24bd35b97261586b48e31d32211fecd4
parent5b7376512fbc99b69b56618a1cf78e6cb090b563
Adding admin purging of DB items and pictures. #904 #1331 (#1809)

* First pass at adding admin purge. #904 #1331

* Breaking out purge into 4 tables for the 4 purgeable types.

* Using CommunitySafe instead in view

* Fix db_schema features flags.

* Attempting to pass API key.

* Adding pictrs image purging

- Added pictrs_config block, for API_KEY
- Clear out image columns after purging

* Remove the remove_images field from a few of the purge API calls.

* Fix some suggestions by @nutomic.

* Add separate pictrs reqwest client.

* Update defaults.hjson

Co-authored-by: Nutomic <me@nutomic.com>
38 files changed:
config/defaults.hjson
crates/api/src/lib.rs
crates/api/src/local_user/ban_person.rs
crates/api/src/site/mod.rs
crates/api/src/site/mod_log.rs
crates/api/src/site/purge/comment.rs [new file with mode: 0644]
crates/api/src/site/purge/community.rs [new file with mode: 0644]
crates/api/src/site/purge/mod.rs [new file with mode: 0644]
crates/api/src/site/purge/person.rs [new file with mode: 0644]
crates/api/src/site/purge/post.rs [new file with mode: 0644]
crates/api_common/src/request.rs
crates/api_common/src/site.rs
crates/api_common/src/utils.rs
crates/api_crud/src/user/delete.rs
crates/apub/src/activities/block/block_user.rs
crates/apub/src/activities/deletion/delete_user.rs
crates/db_schema/src/impls/community.rs
crates/db_schema/src/impls/moderator.rs
crates/db_schema/src/impls/person.rs
crates/db_schema/src/impls/post.rs
crates/db_schema/src/schema.rs
crates/db_schema/src/source/moderator.rs
crates/db_views_moderator/src/admin_purge_comment_view.rs [new file with mode: 0644]
crates/db_views_moderator/src/admin_purge_community_view.rs [new file with mode: 0644]
crates/db_views_moderator/src/admin_purge_person_view.rs [new file with mode: 0644]
crates/db_views_moderator/src/admin_purge_post_view.rs [new file with mode: 0644]
crates/db_views_moderator/src/lib.rs
crates/db_views_moderator/src/structs.rs
crates/routes/src/images.rs
crates/utils/src/settings/mod.rs
crates/utils/src/settings/structs.rs
crates/websocket/src/lib.rs
docker/dev/docker-compose.yml
docker/lemmy.hjson
migrations/2021-10-01-141650_create_admin_purge/down.sql [new file with mode: 0644]
migrations/2021-10-01-141650_create_admin_purge/up.sql [new file with mode: 0644]
src/api_routes.rs
src/main.rs