Use Base::retract() instead of into_any_base() on creating activity
This commit is contained in:
parent
85e35fdb5d
commit
6b5a1d2130
@ -15,7 +15,7 @@ use activitystreams::{
|
|||||||
activity::Delete as Delete07,
|
activity::Delete as Delete07,
|
||||||
actor::AsApActor,
|
actor::AsApActor,
|
||||||
actor::{ApActor as ApActor07, Endpoints as Endpoints07, Person as Person07},
|
actor::{ApActor as ApActor07, Endpoints as Endpoints07, Person as Person07},
|
||||||
base::AnyBase,
|
base::{AnyBase, Base},
|
||||||
collection::{
|
collection::{
|
||||||
OrderedCollection as OrderedCollection07, OrderedCollectionPage as OrderedCollectionPage07,
|
OrderedCollection as OrderedCollection07, OrderedCollectionPage as OrderedCollectionPage07,
|
||||||
},
|
},
|
||||||
@ -972,7 +972,7 @@ impl User {
|
|||||||
|
|
||||||
let mut del = Delete07::new(
|
let mut del = Delete07::new(
|
||||||
self.ap_url.parse::<IriString>()?,
|
self.ap_url.parse::<IriString>()?,
|
||||||
tombstone.into_any_base()?,
|
Base::retract(tombstone)?.into_generic()?,
|
||||||
);
|
);
|
||||||
del.set_id(format!("{}#delete", self.ap_url).parse()?);
|
del.set_id(format!("{}#delete", self.ap_url).parse()?);
|
||||||
del.set_many_tos(vec![PUBLIC_VISIBILITY.parse::<IriString>()?]);
|
del.set_many_tos(vec![PUBLIC_VISIBILITY.parse::<IriString>()?]);
|
||||||
|
Loading…
Reference in New Issue
Block a user