Remove 0.15 federation compat code (#2131)

This commit is contained in:
Nutomic 2022-06-02 17:48:53 +00:00 committed by GitHub
parent a2a594b763
commit 13ca1111c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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,