]> Untitled Git - lemmy.git/commit
Rewrite delete activities (#1699)
authorNutomic <me@nutomic.com>
Tue, 17 Aug 2021 18:04:58 +0000 (18:04 +0000)
committerGitHub <noreply@github.com>
Tue, 17 Aug 2021 18:04:58 +0000 (14:04 -0400)
commit28d6370c359d368882d9337d1b32ec2c14987a08
tree593f175ea68bd08cc753f418b34061b523007094
parent6fbf6a684c383327aa687e49696c7fc327295e88
Rewrite delete activities (#1699)

* Limit type/method visibility in apub code

* Simplify db_queries traits by removing generics

* Simplify delete activity implementation

* Rewrite delete activities

* Implement helper functions for websocket message sending

* When receiving delete reason as empty string, change to none
65 files changed:
Cargo.lock
crates/api/src/comment.rs
crates/api/src/post.rs
crates/api/src/private_message.rs
crates/api_crud/src/comment/create.rs
crates/api_crud/src/comment/delete.rs
crates/api_crud/src/comment/update.rs
crates/api_crud/src/community/delete.rs
crates/api_crud/src/community/mod.rs
crates/api_crud/src/community/update.rs
crates/api_crud/src/post/create.rs
crates/api_crud/src/post/delete.rs
crates/api_crud/src/post/update.rs
crates/api_crud/src/private_message/create.rs
crates/api_crud/src/private_message/delete.rs
crates/api_crud/src/private_message/update.rs
crates/apub/src/activities/comment/create_or_update.rs
crates/apub/src/activities/comment/mod.rs
crates/apub/src/activities/community/announce.rs
crates/apub/src/activities/community/mod.rs
crates/apub/src/activities/community/update.rs
crates/apub/src/activities/deletion/delete.rs
crates/apub/src/activities/deletion/mod.rs
crates/apub/src/activities/deletion/undo_delete.rs
crates/apub/src/activities/post/create_or_update.rs
crates/apub/src/activities/post/mod.rs
crates/apub/src/activities/private_message/create_or_update.rs
crates/apub/src/activities/private_message/delete.rs
crates/apub/src/activities/private_message/mod.rs
crates/apub/src/activities/private_message/undo_delete.rs
crates/apub/src/activities/removal/remove.rs
crates/apub/src/activities/removal/undo_remove.rs
crates/apub/src/activities/send/comment.rs [deleted file]
crates/apub/src/activities/send/community.rs
crates/apub/src/activities/send/mod.rs
crates/apub/src/activities/send/post.rs [deleted file]
crates/apub/src/activities/voting/mod.rs
crates/apub/src/extensions/context.rs
crates/apub/src/extensions/signatures.rs
crates/apub/src/fetcher/community.rs
crates/apub/src/fetcher/mod.rs
crates/apub/src/fetcher/objects.rs
crates/apub/src/fetcher/person.rs
crates/apub/src/http/inbox_enums.rs
crates/apub/src/lib.rs
crates/apub/src/migrations.rs
crates/apub/src/objects/mod.rs
crates/db_queries/src/lib.rs
crates/db_queries/src/source/activity.rs
crates/db_queries/src/source/comment.rs
crates/db_queries/src/source/comment_report.rs
crates/db_queries/src/source/community.rs
crates/db_queries/src/source/local_user.rs
crates/db_queries/src/source/moderator.rs
crates/db_queries/src/source/password_reset_request.rs
crates/db_queries/src/source/person.rs
crates/db_queries/src/source/person_mention.rs
crates/db_queries/src/source/post.rs
crates/db_queries/src/source/post_report.rs
crates/db_queries/src/source/private_message.rs
crates/db_queries/src/source/site.rs
crates/websocket/Cargo.toml
crates/websocket/src/lib.rs
crates/websocket/src/messages.rs
crates/websocket/src/send.rs [new file with mode: 0644]