]> Untitled Git - lemmy.git/commit
Hide community v2 (#2055)
authordayinjing <94152841+dayinjing@users.noreply.github.com>
Fri, 18 Feb 2022 02:30:47 +0000 (20:30 -0600)
committerGitHub <noreply@github.com>
Fri, 18 Feb 2022 02:30:47 +0000 (02:30 +0000)
commit7f9b55e7935f6093895734b1a45ec128d2cb2a33
tree51184f29c28176736b640c9c98424eebc943fc0a
parent762b85b27e812856f65933a182188e7102617aae
Hide community v2 (#2055)

* Initial working of hiding communities and adding a db entry for mod log

* Return mod log for hidden communities

* Clean up hidding communities PR

* use lower case like other migration files

* Formatting fix

* pass in admin id to list, make match logic the same in post_view as community_view. Dont force non null for reason

* Clean PR review stuff

* Change person_id to mod_person_id on hide community table

* Make bools optional, add a space for formating

Co-authored-by: Thor Odinson <odinson@asgard.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
21 files changed:
crates/api/src/site.rs
crates/api_common/src/community.rs
crates/api_common/src/site.rs
crates/api_crud/src/community/update.rs
crates/apub/src/protocol/objects/group.rs
crates/db_schema/src/impls/community.rs
crates/db_schema/src/impls/moderator.rs
crates/db_schema/src/schema.rs
crates/db_schema/src/source/community.rs
crates/db_schema/src/source/moderator.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
crates/db_views_moderator/src/lib.rs
crates/db_views_moderator/src/mod_hide_community_view.rs [new file with mode: 0644]
migrations/2022-01-04-034553_add_hidden_column/down.sql [new file with mode: 0644]
migrations/2022-01-04-034553_add_hidden_column/up.sql [new file with mode: 0644]
src/api_routes.rs
src/code_migrations.rs