]> Untitled Git - lemmy.git/blobdiff - crates/api_crud/src/post/create.rs
Use audience field to federate items in groups (fixes #2464) (#2584)
[lemmy.git] / crates / api_crud / src / post / create.rs
index 20d32b12c83867ce40ef0c2296c6c8dea3e7171f..cad8b28e227f7ad50bed13f2678c953f04e58c06 100644 (file)
@@ -15,7 +15,7 @@ use lemmy_api_common::{
 use lemmy_apub::{
   generate_local_apub_endpoint,
   objects::post::ApubPost,
-  protocol::activities::{create_or_update::post::CreateOrUpdatePost, CreateOrUpdateType},
+  protocol::activities::{create_or_update::page::CreateOrUpdatePage, CreateOrUpdateType},
   EndpointType,
 };
 use lemmy_db_schema::{
@@ -174,7 +174,7 @@ impl PerformCrud for CreatePost {
     }
 
     let apub_post: ApubPost = updated_post.into();
-    CreateOrUpdatePost::send(
+    CreateOrUpdatePage::send(
       apub_post.clone(),
       &local_user_view.person.clone().into(),
       CreateOrUpdateType::Create,