]> Untitled Git - lemmy.git/commit
Get rid of Safe Views, use serde_skip (#2767)
authorDessalines <dessalines@users.noreply.github.com>
Wed, 1 Mar 2023 17:19:46 +0000 (12:19 -0500)
committerGitHub <noreply@github.com>
Wed, 1 Mar 2023 17:19:46 +0000 (18:19 +0100)
commit985fe24669d3fdeecc0aa76cc74dd6570cbad5c8
tree63b487a7a4085aa389e589fe458cb5f88aaad7c0
parent48f187188bce9f5fa1ac8ee09615540ee4df8540
Get rid of Safe Views, use serde_skip (#2767)

* Get rid of Safe Views, use serde_skip

- Also change the ViewToVec, to work with non-vector cases. Might be
  necessary in preparation for #2763
- Fixes #2712

* Forgot one safe

---------

Co-authored-by: Nutomic <me@nutomic.com>
55 files changed:
crates/api/src/community/ban.rs
crates/api/src/local_user/add_admin.rs
crates/api/src/local_user/ban_person.rs
crates/api/src/local_user/block.rs
crates/api/src/local_user/list_banned.rs
crates/api/src/site/leave_admin.rs
crates/api_common/src/community.rs
crates/api_common/src/person.rs
crates/api_common/src/site.rs
crates/api_common/src/utils.rs
crates/api_crud/src/site/read.rs
crates/apub/src/api/read_person.rs
crates/apub/src/api/resolve_object.rs
crates/db_schema/src/impls/community.rs
crates/db_schema/src/impls/local_user.rs
crates/db_schema/src/impls/person.rs
crates/db_schema/src/source/community.rs
crates/db_schema/src/source/local_user.rs
crates/db_schema/src/source/person.rs
crates/db_schema/src/traits.rs
crates/db_views/src/comment_report_view.rs
crates/db_views/src/comment_view.rs
crates/db_views/src/local_user_view.rs
crates/db_views/src/post_report_view.rs
crates/db_views/src/post_view.rs
crates/db_views/src/private_message_report_view.rs
crates/db_views/src/private_message_view.rs
crates/db_views/src/registration_application_view.rs
crates/db_views/src/structs.rs
crates/db_views_actor/src/comment_reply_view.rs
crates/db_views_actor/src/community_block_view.rs
crates/db_views_actor/src/community_follower_view.rs
crates/db_views_actor/src/community_moderator_view.rs
crates/db_views_actor/src/community_person_ban_view.rs
crates/db_views_actor/src/community_view.rs
crates/db_views_actor/src/person_block_view.rs
crates/db_views_actor/src/person_mention_view.rs
crates/db_views_actor/src/person_view.rs
crates/db_views_actor/src/structs.rs
crates/db_views_moderator/src/admin_purge_comment_view.rs
crates/db_views_moderator/src/admin_purge_community_view.rs
crates/db_views_moderator/src/admin_purge_person_view.rs
crates/db_views_moderator/src/admin_purge_post_view.rs
crates/db_views_moderator/src/mod_add_community_view.rs
crates/db_views_moderator/src/mod_add_view.rs
crates/db_views_moderator/src/mod_ban_from_community_view.rs
crates/db_views_moderator/src/mod_ban_view.rs
crates/db_views_moderator/src/mod_feature_post_view.rs
crates/db_views_moderator/src/mod_hide_community_view.rs
crates/db_views_moderator/src/mod_lock_post_view.rs
crates/db_views_moderator/src/mod_remove_comment_view.rs
crates/db_views_moderator/src/mod_remove_community_view.rs
crates/db_views_moderator/src/mod_remove_post_view.rs
crates/db_views_moderator/src/mod_transfer_community_view.rs
crates/db_views_moderator/src/structs.rs