-use lemmy_apub::activities::{
- private_message::create_or_update::CreateOrUpdatePrivateMessage,
- CreateOrUpdateType,
+use lemmy_db_schema::{
+ source::{
+ local_site::LocalSite,
+ private_message::{PrivateMessage, PrivateMessageUpdateForm},
+ },
+ traits::Crud,
+ utils::naive_now,
+};
+use lemmy_db_views::structs::PrivateMessageView;
+use lemmy_utils::{
+ error::{LemmyError, LemmyErrorExt, LemmyErrorType},
+ utils::{slurs::remove_slurs, validation::is_valid_body_field},