use crate::{
- newtypes::{PersonId, PrivateMessageReportId},
+ newtypes::{PersonId, PrivateMessageId, PrivateMessageReportId},
schema::private_message_report::dsl::{private_message_report, resolved, resolver_id, updated},
source::private_message_report::{PrivateMessageReport, PrivateMessageReportForm},
traits::Reportable,
impl Reportable for PrivateMessageReport {
type Form = PrivateMessageReportForm;
type IdType = PrivateMessageReportId;
+ type ObjectIdType = PrivateMessageId;
async fn report(
pool: &mut DbPool<'_>,
.await
}
+ // TODO: this is unused because private message doesnt have remove handler
+ async fn resolve_all_for_object(
+ _pool: &mut DbPool<'_>,
+ _pm_id_: PrivateMessageId,
+ _by_resolver_id: PersonId,
+ ) -> Result<usize, Error> {
+ unimplemented!()
+ }
+
async fn unresolve(
pool: &mut DbPool<'_>,
report_id: Self::IdType,