Automatically resolve report when post/comment is removed (#3850)
authorNutomic <me@nutomic.com>
Tue, 8 Aug 2023 15:19:55 +0000 (17:19 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Aug 2023 15:19:55 +0000 (11:19 -0400)
commitf7f6766650b9b573a72075e564aed353c0131cd7
treee9e3c9d33bd63212a827d3c6f8c00457682de05d
parentae438e148e3d0365a80ea8a9a40a3d3e9c0aad60
Automatically resolve report when post/comment is removed (#3850)

* Automatically resolve report when post/comment is removed

* also handle apub removes
crates/api_crud/src/comment/remove.rs
crates/api_crud/src/post/remove.rs
crates/apub/src/activities/deletion/delete.rs
crates/db_schema/src/impls/comment_report.rs
crates/db_schema/src/impls/post_report.rs
crates/db_schema/src/impls/private_message_report.rs
crates/db_schema/src/source/post_report.rs
crates/db_schema/src/traits.rs