]> Untitled Git - lemmy.git/commit
Clean up reporting (#1776)
authorDessalines <dessalines@users.noreply.github.com>
Tue, 28 Sep 2021 10:36:17 +0000 (06:36 -0400)
committerGitHub <noreply@github.com>
Tue, 28 Sep 2021 10:36:17 +0000 (10:36 +0000)
commitb18c744f637a1bfa51c13fcd6348b8136860c5f8
treefab0f7e87d31fe7d011a9b7c9699d77942a9395c
parent240de006db79ef65508e0b14bf7e3612bf640efc
Clean up reporting (#1776)

* First untested pass at reporting.

* Adding unit tests for post and comment report views

* Fix clippy

* Adding counts, creator_banned, and unresolved_only

* Adding my_vote to report views

* Fixing unit tests.
15 files changed:
crates/api/src/comment_report.rs
crates/api/src/local_user.rs
crates/api/src/post_report.rs
crates/api_common/src/comment.rs
crates/api_common/src/lib.rs
crates/api_common/src/person.rs
crates/api_common/src/post.rs
crates/db_queries/src/lib.rs
crates/db_queries/src/source/comment_report.rs
crates/db_queries/src/source/post_report.rs
crates/db_schema/src/lib.rs
crates/db_schema/src/source/comment_report.rs
crates/db_schema/src/source/post_report.rs
crates/db_views/src/comment_report_view.rs
crates/db_views/src/post_report_view.rs