]> Untitled Git - lemmy.git/blobdiff - crates/db_schema/src/source/post_report.rs
Automatically resolve report when post/comment is removed (#3850)
[lemmy.git] / crates / db_schema / src / source / post_report.rs
index 0d09b5e9d853cb68f867eeaa0150968a9a4b1655..74e4186702e6e68866b3efdf052cc567a172eb51 100644 (file)
@@ -30,7 +30,7 @@ pub struct PostReport {
   pub updated: Option<chrono::NaiveDateTime>,
 }
 
-#[derive(Clone)]
+#[derive(Clone, Default)]
 #[cfg_attr(feature = "full", derive(Insertable, AsChangeset))]
 #[cfg_attr(feature = "full", diesel(table_name = post_report))]
 pub struct PostReportForm {