]> Untitled Git - lemmy.git/commit
Pleroma federation2 (#1855)
authorNutomic <me@nutomic.com>
Thu, 21 Oct 2021 17:25:35 +0000 (17:25 +0000)
committerGitHub <noreply@github.com>
Thu, 21 Oct 2021 17:25:35 +0000 (13:25 -0400)
commitdd0ba10b441b28d76403210e77c23e6e95245f1c
treeac74b66b7267e7f8e07af06f980118d8a327e13a
parent21304e6751aa0b762ccbe93b86f0a4707a15eaf1
Pleroma federation2 (#1855)

* Allow fetching person from Pleroma, including test case (ref #1461)

* Added test case for parsing community from apub json

- fixed a bug with objectid (de)serialization
- fixed a bug with outbox fetching (ref #1582)

* Added apub test for post

* Ignore errors when reading community outbox (fixes #1582)

* Dont fetch community outbox/moderators during tests

* added test for lemmy comment

* Added federation test for pleroma comment

* Added html2md crate to parse comment html from pleroma (fixes #1461)

* some fixes for update_apub_test_files.sh

* Add tests for ToApub, private message, remove update script

* Delete objects from db at the end of each test
35 files changed:
Cargo.lock
config/config.hjson
crates/apub/Cargo.toml
crates/apub/assets/lemmy-comment.json [new file with mode: 0644]
crates/apub/assets/lemmy-community.json [new file with mode: 0644]
crates/apub/assets/lemmy-person.json [new file with mode: 0644]
crates/apub/assets/lemmy-post.json [new file with mode: 0644]
crates/apub/assets/lemmy-private-message.json [new file with mode: 0644]
crates/apub/assets/pleroma-comment.json [new file with mode: 0644]
crates/apub/assets/pleroma-person.json [new file with mode: 0644]
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/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/undo_delete.rs
crates/apub/src/activities/mod.rs
crates/apub/src/activities/post/create_or_update.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/object_id.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/db_schema/src/impls/private_message.rs
crates/websocket/src/lib.rs