Remove duplicate import

This commit is contained in:
Kitaiti Makoto 2022-05-03 00:17:19 +09:00
parent 6c615d01ad
commit 6d919da049

View File

@ -7,8 +7,7 @@ use crate::{
use activitypub::Activity; use activitypub::Activity;
use activitystreams::{ use activitystreams::{
activity::Delete, activity::Delete,
actor::{ApActor, AsApActor}, actor::{ApActor, AsApActor, Endpoints, Person},
actor::{ApActor as ApActor07, Endpoints, Person},
base::{AnyBase, Base}, base::{AnyBase, Base},
collection::{OrderedCollection as OrderedCollection07, OrderedCollectionPage}, collection::{OrderedCollection as OrderedCollection07, OrderedCollectionPage},
iri_string::types::IriString, iri_string::types::IriString,
@ -826,7 +825,7 @@ impl User {
} }
pub fn to_activity07(&self, conn: &Connection) -> Result<CustomPerson> { pub fn to_activity07(&self, conn: &Connection) -> Result<CustomPerson> {
let mut actor = ApActor07::new(self.inbox_url.parse()?, Person::new()); let mut actor = ApActor::new(self.inbox_url.parse()?, Person::new());
let ap_url = self.ap_url.parse::<IriString>()?; let ap_url = self.ap_url.parse::<IriString>()?;
actor.set_id(ap_url.clone()); actor.set_id(ap_url.clone());
actor.set_name(self.display_name.clone()); actor.set_name(self.display_name.clone());