X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fdb_schema%2Fsrc%2Ftraits.rs;h=cb128339b19f16adc33b001f7f0fb1f7f325c5f1;hb=f7f6766650b9b573a72075e564aed353c0131cd7;hp=07f0b07e25937c1481a6a2c879f6a3a70cdee036;hpb=ae438e148e3d0365a80ea8a9a40a3d3e9c0aad60;p=lemmy.git diff --git a/crates/db_schema/src/traits.rs b/crates/db_schema/src/traits.rs index 07f0b07e..cb128339 100644 --- a/crates/db_schema/src/traits.rs +++ b/crates/db_schema/src/traits.rs @@ -155,6 +155,7 @@ pub trait Readable { pub trait Reportable { type Form; type IdType; + type ObjectIdType; async fn report(pool: &mut DbPool<'_>, form: &Self::Form) -> Result where Self: Sized; @@ -163,6 +164,13 @@ pub trait Reportable { report_id: Self::IdType, resolver_id: PersonId, ) -> Result + where + Self: Sized; + async fn resolve_all_for_object( + pool: &mut DbPool<'_>, + comment_id_: Self::ObjectIdType, + by_resolver_id: PersonId, + ) -> Result where Self: Sized; async fn unresolve(