]> Untitled Git - lemmy.git/commit
Implement reports for private messages (#2433)
authorNutomic <me@nutomic.com>
Mon, 19 Sep 2022 22:58:42 +0000 (22:58 +0000)
committerGitHub <noreply@github.com>
Mon, 19 Sep 2022 22:58:42 +0000 (22:58 +0000)
commit004efd5d94da0eee2a51f8c88a441c0c4afe3871
tree98ad6d6ecb357f68852ea9a9c181215e34103039
parent09246a20fb4c1ba82fd2a34bd9b0b54e0eb6575f
Implement reports for private messages (#2433)

* Implement reports for private messages

* finish private message report view + test

* implement api for pm reports

* merge list report api calls into one, move report count to site

* fix compile error

* Revert "merge list report api calls into one, move report count to site"

This reverts commit 3bf3b06a705c6bcf2bf20d07e2819b81298790f3.

* add websocket messages for pm report created/resolved

* remove private_message_report_view

* add joinable private_message_report -> person_alias_1

* Address review comments
32 files changed:
crates/api/src/comment_report/create.rs
crates/api/src/lib.rs
crates/api/src/local_user/report_count.rs
crates/api/src/post_report/create.rs
crates/api/src/private_message/mark_read.rs
crates/api/src/private_message_report/create.rs [new file with mode: 0644]
crates/api/src/private_message_report/list.rs [new file with mode: 0644]
crates/api/src/private_message_report/mod.rs [new file with mode: 0644]
crates/api/src/private_message_report/resolve.rs [new file with mode: 0644]
crates/api_common/src/lib.rs
crates/api_common/src/person.rs
crates/api_common/src/private_message.rs [new file with mode: 0644]
crates/api_crud/src/lib.rs
crates/api_crud/src/private_message/create.rs
crates/api_crud/src/private_message/delete.rs
crates/api_crud/src/private_message/read.rs
crates/api_crud/src/private_message/update.rs
crates/db_schema/src/impls/mod.rs
crates/db_schema/src/impls/private_message_report.rs [new file with mode: 0644]
crates/db_schema/src/newtypes.rs
crates/db_schema/src/schema.rs
crates/db_schema/src/source/mod.rs
crates/db_schema/src/source/private_message_report.rs [new file with mode: 0644]
crates/db_views/src/lib.rs
crates/db_views/src/private_message_report_view.rs [new file with mode: 0644]
crates/db_views/src/structs.rs
crates/websocket/src/lib.rs
crates/websocket/src/messages.rs
crates/websocket/src/send.rs
migrations/2022-09-07-114618_pm-reports/down.sql [new file with mode: 0644]
migrations/2022-09-07-114618_pm-reports/up.sql [new file with mode: 0644]
src/api_routes.rs