-use lemmy_db_schema::{source::community::Community, traits::Crud};
-use lemmy_utils::LemmyError;
-use lemmy_websocket::{send::send_post_ws_message, LemmyContext, UserOperationCrud};
+use lemmy_db_schema::{
+ aggregates::structs::PostAggregates,
+ newtypes::PersonId,
+ source::{
+ community::Community,
+ person::Person,
+ post::{Post, PostLike, PostLikeForm},
+ },
+ traits::{Crud, Likeable},
+};
+use lemmy_utils::error::{LemmyError, LemmyErrorType};
+use url::Url;
+
+#[async_trait::async_trait]
+impl SendActivity for CreatePost {
+ type Response = PostResponse;
+
+ async fn send_activity(
+ _request: &Self,
+ response: &Self::Response,
+ context: &Data<LemmyContext>,
+ ) -> Result<(), LemmyError> {
+ CreateOrUpdatePage::send(
+ &response.post_view.post,
+ response.post_view.creator.id,
+ CreateOrUpdateType::Create,
+ context,
+ )
+ .await
+ }
+}
+
+#[async_trait::async_trait]
+impl SendActivity for EditPost {
+ type Response = PostResponse;