From: Nutomic Date: Thu, 2 Jun 2022 17:48:53 +0000 (+0000) Subject: Remove 0.15 federation compat code (#2131) X-Git-Url: http://these/git/%7B%60/feeds/front/static/%7BpictrsAvatarThumbnail%28this.state.siteRes.site.icon%29%7D?a=commitdiff_plain;h=13ca1111c47dc93e47f96205d31768ba8ee4e8d7;p=lemmy.git Remove 0.15 federation compat code (#2131) --- diff --git a/crates/apub/src/activities/deletion/delete.rs b/crates/apub/src/activities/deletion/delete.rs index eb3de179..3cf07bc8 100644 --- a/crates/apub/src/activities/deletion/delete.rs +++ b/crates/apub/src/activities/deletion/delete.rs @@ -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,