Dont allow posts to deleted / removed communities. Fixes #1827 (#1828)
authorDessalines <dessalines@users.noreply.github.com>
Thu, 14 Oct 2021 16:33:19 +0000 (12:33 -0400)
committerGitHub <noreply@github.com>
Thu, 14 Oct 2021 16:33:19 +0000 (16:33 +0000)
commit2402515fccee0c6ee79ed8e1fecf6b0449efa2c4
tree1fe09ac65237e8840db60668d5ffb3be071b0fb8
parentf052e5f1ab81cf49058a0942b7cb67403ded85f0
Dont allow posts to deleted / removed communities. Fixes #1827 (#1828)

* Dont allow posts to deleted / removed communities. Fixes #1827

* Fixing couldnt find community error.

* Adding check in createorupdate post and comment.

* make sure post wasn't deleted or removed.

* Adding a post not deleted or removed check to creatorupdatecomment.

* Using pub(crate)
13 files changed:
api_tests/src/post.spec.ts
crates/api/src/community.rs
crates/api/src/post.rs
crates/api_common/src/lib.rs
crates/api_crud/src/comment/create.rs
crates/api_crud/src/comment/update.rs
crates/api_crud/src/post/create.rs
crates/api_crud/src/post/delete.rs
crates/api_crud/src/post/update.rs
crates/apub/src/activities/comment/create_or_update.rs
crates/apub/src/activities/mod.rs
crates/apub/src/activities/post/create_or_update.rs
crates/apub/src/objects/comment.rs