]> Untitled Git - lemmy.git/commit
Show deleted and removed posts for profile views. Fixes #2624 (#2729)
authorDessalines <dessalines@users.noreply.github.com>
Wed, 1 Mar 2023 03:46:15 +0000 (22:46 -0500)
committerGitHub <noreply@github.com>
Wed, 1 Mar 2023 03:46:15 +0000 (22:46 -0500)
commit48f187188bce9f5fa1ac8ee09615540ee4df8540
treefa8302b50a9377cedd34c42cb453cfcb9869e160
parentd9e7f0100ad14121b43b89d54b80fb2345d8d83e
Show deleted and removed posts for profile views. Fixes #2624 (#2729)

* Show deleted and removed posts for profile views. Fixes #2624

* Only showing non-deleted/removed posts for creator.

* Add a admin or mod check to views, to show deleted and removed posts.

- Also removed the pointless "blanking" functions

* Fix clippy

* Make hidden posts comment clearer.

* Fixing federation tests.

* Fixing fmt.
30 files changed:
api_tests/src/comment.spec.ts
api_tests/src/post.spec.ts
api_tests/src/private_message.spec.ts
api_tests/yarn.lock
crates/api/src/community/block.rs
crates/api/src/community/follow.rs
crates/api/src/community/transfer.rs
crates/api/src/post/mark_read.rs
crates/api/src/post/save.rs
crates/api/src/post_report/create.rs
crates/api_common/src/utils.rs
crates/api_common/src/websocket/send.rs
crates/api_crud/src/community/create.rs
crates/api_crud/src/community/list.rs
crates/api_crud/src/post/read.rs
crates/api_crud/src/private_message/read.rs
crates/apub/src/activities/following/accept.rs
crates/apub/src/api/list_comments.rs
crates/apub/src/api/list_posts.rs
crates/apub/src/api/read_community.rs
crates/apub/src/api/read_person.rs
crates/apub/src/api/resolve_object.rs
crates/apub/src/api/search.rs
crates/db_schema/src/impls/comment.rs
crates/db_schema/src/impls/community.rs
crates/db_schema/src/impls/post.rs
crates/db_schema/src/impls/private_message.rs
crates/db_schema/src/traits.rs
crates/db_views/src/post_view.rs
crates/db_views_actor/src/community_view.rs