]> Untitled Git - lemmy.git/commit
Rewrite fetcher (#1792)
authorNutomic <me@nutomic.com>
Sat, 25 Sep 2021 15:44:52 +0000 (15:44 +0000)
committerGitHub <noreply@github.com>
Sat, 25 Sep 2021 15:44:52 +0000 (11:44 -0400)
commit527eefbe92a4796b957fb232831f7e7c80511ed9
tree3bc93ec503d7631916495a6871c5318c865e603c
parent21346eb786dc75efaca19e6de8a514fab3d33da8
Rewrite fetcher (#1792)

* Use new fetcher implementation for post/comment

* rewrite person fetch to use new fetcher

* rewrite community to use new fetcher

* rename new_fetcher to dereference_object_id

* make ObjectId a newtype

* handle deletion in new fetcher

* rewrite apub object search to be generic

* move upsert() method out of ApubObject trait

* simplify ObjectId::new (and fix clippy)
54 files changed:
api_tests/src/post.spec.ts
crates/api/src/comment.rs
crates/api/src/post.rs
crates/api/src/site.rs
crates/api_crud/src/comment/create.rs
crates/api_crud/src/post/create.rs
crates/apub/src/activities/comment/create_or_update.rs
crates/apub/src/activities/comment/mod.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/remove_mod.rs
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/undo_remove.rs
crates/apub/src/activities/voting/undo_vote.rs
crates/apub/src/activities/voting/vote.rs
crates/apub/src/fetcher/community.rs
crates/apub/src/fetcher/deletable_apub_object.rs [new file with mode: 0644]
crates/apub/src/fetcher/fetch.rs
crates/apub/src/fetcher/mod.rs
crates/apub/src/fetcher/object_id.rs [new file with mode: 0644]
crates/apub/src/fetcher/objects.rs [deleted file]
crates/apub/src/fetcher/person.rs [deleted file]
crates/apub/src/fetcher/post_or_comment.rs [new file with mode: 0644]
crates/apub/src/fetcher/search.rs
crates/apub/src/http/mod.rs
crates/apub/src/lib.rs
crates/apub/src/migrations.rs
crates/apub/src/objects/comment.rs
crates/apub/src/objects/community.rs
crates/apub/src/objects/mod.rs
crates/apub/src/objects/person.rs
crates/apub/src/objects/post.rs
crates/apub/src/objects/private_message.rs
crates/apub_lib_derive/src/lib.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/community.rs
crates/db_queries/src/source/person.rs
crates/db_queries/src/source/post.rs
crates/db_queries/src/source/private_message.rs