mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-12 05:54:51 +00:00
Adding profile.
This commit is contained in:
parent
0ba961ff5c
commit
d8dda44010
|
@ -44,7 +44,6 @@ pub struct ListPostReports {
|
|||
/// Only shows the unresolved reports
|
||||
#[cfg_attr(feature = "full", ts(optional))]
|
||||
pub unresolved_only: Option<bool>,
|
||||
// TODO make into tagged enum at some point
|
||||
/// if no community is given, it returns reports for all communities moderated by the auth user
|
||||
#[cfg_attr(feature = "full", ts(optional))]
|
||||
pub community_id: Option<CommunityId>,
|
||||
|
|
|
@ -36,7 +36,6 @@ pub struct ResolvePrivateMessageReport {
|
|||
#[cfg_attr(feature = "full", derive(TS))]
|
||||
#[cfg_attr(feature = "full", ts(export))]
|
||||
/// List private message reports.
|
||||
// TODO , perhaps GetReports should be a tagged enum list too.
|
||||
pub struct ListPrivateMessageReports {
|
||||
#[cfg_attr(feature = "full", ts(optional))]
|
||||
pub page: Option<i64>,
|
||||
|
|
|
@ -261,7 +261,7 @@ pub struct ReportCombinedViewInternal {
|
|||
// Private-message-specific
|
||||
pub private_message_report: Option<PrivateMessageReport>,
|
||||
pub private_message: Option<PrivateMessage>,
|
||||
// // Shared
|
||||
// Shared
|
||||
pub report_creator: Person,
|
||||
pub item_creator: Person,
|
||||
pub community: Option<Community>,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
--
|
||||
-- Reports: (comment, post, and private_message)
|
||||
-- Inbox: (Comment replies, post replies, comment mentions, post mentions, private messages)
|
||||
-- Profile: (Posts and Comments)
|
||||
-- Modlog: (lots of types)
|
||||
-- Search: (community, post, comment, user, url)
|
||||
-- TODO not sure about these two:
|
||||
|
@ -40,4 +41,3 @@ SELECT
|
|||
FROM
|
||||
private_message_report;
|
||||
|
||||
-- TODO do triggers in replaceable schema
|
||||
|
|
Loading…
Reference in a new issue