]> Untitled Git - lemmy.git/commit
Implement separate mod activities for feature, lock post (#2716)
authorNutomic <me@nutomic.com>
Sat, 18 Feb 2023 14:50:28 +0000 (23:50 +0900)
committerGitHub <noreply@github.com>
Sat, 18 Feb 2023 14:50:28 +0000 (09:50 -0500)
commit62663a9f2e91e3e909d96c921c21bea598a57f91
tree22ba050f6c7ae0755131ccf46ab3a6a12889ceff
parent8409e50f8c1aba177423d773d07f7b66b518f46b
Implement separate mod activities for feature, lock post (#2716)

* Implement separate mod activities for feature, lock post

Also includes collection for featured posts. Later we also need
to do the same for Comment.distinguished

* some changes

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
54 files changed:
crates/api_common/src/utils.rs
crates/apub/assets/lemmy/activities/community/add_featured_post.json [new file with mode: 0644]
crates/apub/assets/lemmy/activities/community/lock_page.json [new file with mode: 0644]
crates/apub/assets/lemmy/activities/community/remove_featured_post.json [new file with mode: 0644]
crates/apub/assets/lemmy/activities/community/undo_lock_page.json [new file with mode: 0644]
crates/apub/assets/lemmy/collections/group_featured_posts.json [new file with mode: 0644]
crates/apub/assets/lemmy/objects/group.json
crates/apub/assets/mastodon/collections/featured.json [new file with mode: 0644]
crates/apub/src/activities/community/add_mod.rs [deleted file]
crates/apub/src/activities/community/collection_add.rs [new file with mode: 0644]
crates/apub/src/activities/community/collection_remove.rs [new file with mode: 0644]
crates/apub/src/activities/community/lock_page.rs [new file with mode: 0644]
crates/apub/src/activities/community/mod.rs
crates/apub/src/activities/community/remove_mod.rs [deleted file]
crates/apub/src/activities/create_or_update/post.rs
crates/apub/src/activities/deletion/mod.rs
crates/apub/src/activities/mod.rs
crates/apub/src/activity_lists.rs
crates/apub/src/collections/community_featured.rs [new file with mode: 0644]
crates/apub/src/collections/community_outbox.rs
crates/apub/src/collections/mod.rs
crates/apub/src/fetcher/deletable_apub_object.rs [deleted file]
crates/apub/src/fetcher/post_or_comment.rs
crates/apub/src/http/community.rs
crates/apub/src/http/routes.rs
crates/apub/src/objects/community.rs
crates/apub/src/protocol/activities/block/block_user.rs
crates/apub/src/protocol/activities/block/undo_block_user.rs
crates/apub/src/protocol/activities/community/collection_add.rs [moved from crates/apub/src/protocol/activities/community/add_mod.rs with 63% similarity]
crates/apub/src/protocol/activities/community/collection_remove.rs [moved from crates/apub/src/protocol/activities/community/remove_mod.rs with 66% similarity]
crates/apub/src/protocol/activities/community/lock_page.rs [new file with mode: 0644]
crates/apub/src/protocol/activities/community/mod.rs
crates/apub/src/protocol/activities/community/report.rs
crates/apub/src/protocol/activities/community/update.rs
crates/apub/src/protocol/activities/create_or_update/note.rs
crates/apub/src/protocol/activities/create_or_update/page.rs
crates/apub/src/protocol/activities/deletion/delete.rs
crates/apub/src/protocol/activities/deletion/undo_delete.rs
crates/apub/src/protocol/activities/voting/undo_vote.rs
crates/apub/src/protocol/activities/voting/vote.rs
crates/apub/src/protocol/collections/group_featured.rs [new file with mode: 0644]
crates/apub/src/protocol/collections/mod.rs
crates/apub/src/protocol/objects/group.rs
crates/apub/src/protocol/objects/note.rs
crates/apub/src/protocol/objects/page.rs
crates/db_schema/src/impls/community.rs
crates/db_schema/src/impls/post.rs
crates/db_schema/src/newtypes.rs
crates/db_schema/src/schema.rs
crates/db_schema/src/source/community.rs
crates/db_schema/src/utils.rs
docker/federation/docker-compose.yml
migrations/2023-02-07-030958_community-collections/down.sql [new file with mode: 0644]
migrations/2023-02-07-030958_community-collections/up.sql [new file with mode: 0644]