]> Untitled Git - lemmy.git/blobdiff - crates/api/src/post/lock.rs
Use audience field to federate items in groups (fixes #2464) (#2584)
[lemmy.git] / crates / api / src / post / lock.rs
index d47088e865a4513e893d6179dd058ff18ac8fc97..ae726ee926968f0c59ee2dd8fad38918c6a7c72c 100644 (file)
@@ -11,7 +11,7 @@ use lemmy_api_common::{
 };
 use lemmy_apub::{
   objects::post::ApubPost,
-  protocol::activities::{create_or_update::post::CreateOrUpdatePost, CreateOrUpdateType},
+  protocol::activities::{create_or_update::page::CreateOrUpdatePage, CreateOrUpdateType},
 };
 use lemmy_db_schema::{
   source::{
@@ -76,7 +76,7 @@ impl Perform for LockPost {
     ModLockPost::create(context.pool(), &form).await?;
 
     // apub updates
-    CreateOrUpdatePost::send(
+    CreateOrUpdatePage::send(
       updated_post,
       &local_user_view.person.clone().into(),
       CreateOrUpdateType::Update,