]> Untitled Git - lemmy.git/commit
Implement restricted community (only mods can post) (fixes #187) (#2235)
authorNutomic <me@nutomic.com>
Thu, 28 Apr 2022 20:32:32 +0000 (22:32 +0200)
committerGitHub <noreply@github.com>
Thu, 28 Apr 2022 20:32:32 +0000 (20:32 +0000)
commit7058cfa1cf67e65818e8ce62d9716b1564558734
tree976c848c9e7be64cc46391dfd2a280afa4b885e6
parent9c1b9ff3cf198d829630d3d4ab0c03985ecc732f
Implement restricted community (only mods can post) (fixes #187) (#2235)

* Implement restricted community (only mods can post) (fixes #187)

* review fixes

* fix tests
22 files changed:
Cargo.lock
crates/api/src/community/hide.rs [new file with mode: 0644]
crates/api/src/community/mod.rs
crates/api_crud/src/community/update.rs
crates/api_crud/src/post/create.rs
crates/apub/assets/lemmy/activities/community/update_community.json
crates/apub/assets/lemmy/objects/group.json
crates/apub/src/objects/community.rs
crates/apub/src/protocol/objects/group.rs
crates/apub_lib/Cargo.toml
crates/db_schema/src/impls/community.rs
crates/db_schema/src/schema.rs
crates/db_schema/src/source/community.rs
crates/db_views/src/comment_report_view.rs
crates/db_views/src/comment_view.rs
crates/db_views/src/post_report_view.rs
crates/db_views/src/post_view.rs
crates/db_views_actor/src/community_view.rs
migrations/2022-04-26-105145_only_mod_can_post/down.sql [new file with mode: 0644]
migrations/2022-04-26-105145_only_mod_can_post/up.sql [new file with mode: 0644]
src/api_routes.rs
src/code_migrations.rs