Adding profile.

This commit is contained in:
Dessalines 2024-11-27 16:37:05 -05:00
parent 0ba961ff5c
commit d8dda44010
4 changed files with 2 additions and 4 deletions

View file

@ -44,7 +44,6 @@ pub struct ListPostReports {
/// Only shows the unresolved reports /// Only shows the unresolved reports
#[cfg_attr(feature = "full", ts(optional))] #[cfg_attr(feature = "full", ts(optional))]
pub unresolved_only: Option<bool>, 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 /// if no community is given, it returns reports for all communities moderated by the auth user
#[cfg_attr(feature = "full", ts(optional))] #[cfg_attr(feature = "full", ts(optional))]
pub community_id: Option<CommunityId>, pub community_id: Option<CommunityId>,

View file

@ -36,7 +36,6 @@ pub struct ResolvePrivateMessageReport {
#[cfg_attr(feature = "full", derive(TS))] #[cfg_attr(feature = "full", derive(TS))]
#[cfg_attr(feature = "full", ts(export))] #[cfg_attr(feature = "full", ts(export))]
/// List private message reports. /// List private message reports.
// TODO , perhaps GetReports should be a tagged enum list too.
pub struct ListPrivateMessageReports { pub struct ListPrivateMessageReports {
#[cfg_attr(feature = "full", ts(optional))] #[cfg_attr(feature = "full", ts(optional))]
pub page: Option<i64>, pub page: Option<i64>,

View file

@ -261,7 +261,7 @@ pub struct ReportCombinedViewInternal {
// Private-message-specific // Private-message-specific
pub private_message_report: Option<PrivateMessageReport>, pub private_message_report: Option<PrivateMessageReport>,
pub private_message: Option<PrivateMessage>, pub private_message: Option<PrivateMessage>,
// // Shared // Shared
pub report_creator: Person, pub report_creator: Person,
pub item_creator: Person, pub item_creator: Person,
pub community: Option<Community>, pub community: Option<Community>,

View file

@ -2,6 +2,7 @@
-- --
-- Reports: (comment, post, and private_message) -- Reports: (comment, post, and private_message)
-- Inbox: (Comment replies, post replies, comment mentions, post mentions, private messages) -- Inbox: (Comment replies, post replies, comment mentions, post mentions, private messages)
-- Profile: (Posts and Comments)
-- Modlog: (lots of types) -- Modlog: (lots of types)
-- Search: (community, post, comment, user, url) -- Search: (community, post, comment, user, url)
-- TODO not sure about these two: -- TODO not sure about these two:
@ -40,4 +41,3 @@ SELECT
FROM FROM
private_message_report; private_message_report;
-- TODO do triggers in replaceable schema