]> Untitled Git - lemmy.git/commit
Implement instance actor (#1798)
authorNutomic <me@nutomic.com>
Mon, 7 Feb 2022 19:23:12 +0000 (19:23 +0000)
committerGitHub <noreply@github.com>
Mon, 7 Feb 2022 19:23:12 +0000 (19:23 +0000)
commitdd865c5af5c53601a13b9d64a874c43b5560c3b1
tree4788dead884ec8950baa29d6f73487d1059114bc
parentf1aef631492dc8821cc3a3da527c2734a3de53c5
Implement instance actor (#1798)

* Implement instance actor

* wip: make site bans federate

* finish implementation and unit tests for federated bans

* start adding api tests

* fix api test

* remve site from GetCommunityResponse

* only federate site bans originating from user's home instance

* dont expose site.private_key in api
55 files changed:
api_tests/src/post.spec.ts
api_tests/src/shared.ts
crates/api/src/community.rs
crates/api/src/local_user.rs
crates/api/src/site.rs
crates/api_common/src/lib.rs
crates/api_crud/src/community/create.rs
crates/api_crud/src/site/create.rs
crates/api_crud/src/site/update.rs
crates/api_crud/src/user/create.rs
crates/apub/assets/lemmy/activities/block/block_user.json [moved from crates/apub/assets/lemmy/activities/community/block_user.json with 89% similarity]
crates/apub/assets/lemmy/activities/block/undo_block_user.json [moved from crates/apub/assets/lemmy/activities/community/undo_block_user.json with 87% similarity]
crates/apub/assets/lemmy/objects/instance.json [new file with mode: 0644]
crates/apub/src/activities/block/block_user.rs [new file with mode: 0644]
crates/apub/src/activities/block/mod.rs [new file with mode: 0644]
crates/apub/src/activities/block/undo_block_user.rs [new file with mode: 0644]
crates/apub/src/activities/community/block_user.rs [deleted file]
crates/apub/src/activities/community/mod.rs
crates/apub/src/activities/community/undo_block_user.rs [deleted file]
crates/apub/src/activities/mod.rs
crates/apub/src/activity_lists.rs
crates/apub/src/collections/community_moderators.rs
crates/apub/src/fetcher/deletable_apub_object.rs [new file with mode: 0644]
crates/apub/src/http/mod.rs
crates/apub/src/http/person.rs
crates/apub/src/http/routes.rs
crates/apub/src/http/site.rs [new file with mode: 0644]
crates/apub/src/lib.rs
crates/apub/src/objects/comment.rs
crates/apub/src/objects/community.rs
crates/apub/src/objects/instance.rs [new file with mode: 0644]
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/src/protocol/activities/block/block_user.rs [moved from crates/apub/src/protocol/activities/community/block_user.rs with 65% similarity]
crates/apub/src/protocol/activities/block/mod.rs [new file with mode: 0644]
crates/apub/src/protocol/activities/block/undo_block_user.rs [moved from crates/apub/src/protocol/activities/community/undo_block_user.rs with 78% similarity]
crates/apub/src/protocol/activities/community/mod.rs
crates/apub/src/protocol/activities/mod.rs
crates/apub/src/protocol/collections/empty_outbox.rs [moved from crates/apub/src/protocol/collections/person_outbox.rs with 60% similarity]
crates/apub/src/protocol/collections/mod.rs
crates/apub/src/protocol/mod.rs
crates/apub/src/protocol/objects/instance.rs [new file with mode: 0644]
crates/apub/src/protocol/objects/mod.rs
crates/db_schema/src/aggregates/site_aggregates.rs
crates/db_schema/src/impls/community.rs
crates/db_schema/src/impls/site.rs
crates/db_schema/src/newtypes.rs
crates/db_schema/src/schema.rs
crates/db_schema/src/source/site.rs
crates/db_views/src/site_view.rs
migrations/2022-01-28-104106_instance-actor/down.sql [new file with mode: 0644]
migrations/2022-01-28-104106_instance-actor/up.sql [new file with mode: 0644]
src/code_migrations.rs