]> Untitled Git - lemmy.git/commit
Rewrite remaining activities (#1712)
authorNutomic <me@nutomic.com>
Thu, 19 Aug 2021 21:24:33 +0000 (21:24 +0000)
committerGitHub <noreply@github.com>
Thu, 19 Aug 2021 21:24:33 +0000 (17:24 -0400)
commitf6f169b4eb7542825cf17712b474b6a6ab71cb64
treeed859d6c7d7059723205f9e8d4bfbe941f5394be
parent2016afc9dbdd305364bf2e70270682ad5bfdc82d
Rewrite remaining activities (#1712)

* 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

* Rewrite remaining activities

* Simplify inbox

* Remove struct ActivityCommonFields, derive ActivityFields trait instead

* Community should announce received activities to followers
35 files changed:
crates/api/src/community.rs
crates/api_crud/src/community/update.rs
crates/apub/src/activities/comment/create_or_update.rs
crates/apub/src/activities/community/add_mod.rs
crates/apub/src/activities/community/announce.rs
crates/apub/src/activities/community/block_user.rs
crates/apub/src/activities/community/mod.rs
crates/apub/src/activities/community/remove_mod.rs [new file with mode: 0644]
crates/apub/src/activities/community/undo_block_user.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/following/accept.rs
crates/apub/src/activities/following/follow.rs
crates/apub/src/activities/following/undo.rs
crates/apub/src/activities/mod.rs
crates/apub/src/activities/post/create_or_update.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/undo_delete.rs
crates/apub/src/activities/removal/mod.rs [deleted file]
crates/apub/src/activities/removal/remove.rs [deleted file]
crates/apub/src/activities/send/community.rs
crates/apub/src/activities/undo_remove.rs [moved from crates/apub/src/activities/removal/undo_remove.rs with 69% similarity]
crates/apub/src/activities/voting/undo_vote.rs
crates/apub/src/activities/voting/vote.rs
crates/apub/src/activity_queue.rs
crates/apub/src/http/community.rs
crates/apub/src/http/inbox_enums.rs [deleted file]
crates/apub/src/http/mod.rs
crates/apub/src/http/person.rs
crates/apub/src/lib.rs
crates/apub_lib/src/lib.rs
crates/apub_lib_derive/src/lib.rs