From 6b5a1d21300b4082537bdf8f8a807969fb6ee54a Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Mon, 14 Feb 2022 20:21:19 +0900 Subject: [PATCH] Use Base::retract() instead of into_any_base() on creating activity --- plume-models/src/users.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plume-models/src/users.rs b/plume-models/src/users.rs index 616b1beb..638d9620 100644 --- a/plume-models/src/users.rs +++ b/plume-models/src/users.rs @@ -15,7 +15,7 @@ use activitystreams::{ activity::Delete as Delete07, actor::AsApActor, actor::{ApActor as ApActor07, Endpoints as Endpoints07, Person as Person07}, - base::AnyBase, + base::{AnyBase, Base}, collection::{ OrderedCollection as OrderedCollection07, OrderedCollectionPage as OrderedCollectionPage07, }, @@ -972,7 +972,7 @@ impl User { let mut del = Delete07::new( self.ap_url.parse::()?, - tombstone.into_any_base()?, + Base::retract(tombstone)?.into_generic()?, ); del.set_id(format!("{}#delete", self.ap_url).parse()?); del.set_many_tos(vec![PUBLIC_VISIBILITY.parse::()?]);