]> Untitled Git - lemmy.git/commitdiff
Remove 0.15 federation compat code (#2131)
authorNutomic <me@nutomic.com>
Thu, 2 Jun 2022 17:48:53 +0000 (17:48 +0000)
committerGitHub <noreply@github.com>
Thu, 2 Jun 2022 17:48:53 +0000 (13:48 -0400)
crates/apub/src/activities/deletion/delete.rs

index eb3de179a3a8e3dfae455622ca0dba2b7058cf8d..3cf07bc8fbd4b49b26dde358535f15f17b0b241a 100644 (file)
@@ -6,11 +6,7 @@ use crate::{
   },
   local_instance,
   objects::{community::ApubCommunity, person::ApubPerson},
-  protocol::{
-    activities::deletion::delete::Delete,
-    objects::tombstone::Tombstone,
-    IdOrNestedObject,
-  },
+  protocol::{activities::deletion::delete::Delete, IdOrNestedObject},
 };
 use activitypub_federation::{core::object_id::ObjectId, data::Data, traits::ActivityHandler};
 use activitystreams_kinds::activity::DeleteType;
@@ -118,10 +114,7 @@ impl Delete {
     Ok(Delete {
       actor: ObjectId::new(actor.actor_id.clone()),
       to: vec![to],
-      object: IdOrNestedObject::NestedObject(Tombstone {
-        id: object.id(),
-        kind: Default::default(),
-      }),
+      object: IdOrNestedObject::Id(object.id()),
       cc: cc.into_iter().collect(),
       kind: DeleteType::Delete,
       summary,