mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-05 19:59:30 +00:00
Remove duplicate import
This commit is contained in:
parent
6c615d01ad
commit
6d919da049
1 changed files with 2 additions and 3 deletions
|
@ -7,8 +7,7 @@ use crate::{
|
|||
use activitypub::Activity;
|
||||
use activitystreams::{
|
||||
activity::Delete,
|
||||
actor::{ApActor, AsApActor},
|
||||
actor::{ApActor as ApActor07, Endpoints, Person},
|
||||
actor::{ApActor, AsApActor, Endpoints, Person},
|
||||
base::{AnyBase, Base},
|
||||
collection::{OrderedCollection as OrderedCollection07, OrderedCollectionPage},
|
||||
iri_string::types::IriString,
|
||||
|
@ -826,7 +825,7 @@ impl User {
|
|||
}
|
||||
|
||||
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>()?;
|
||||
actor.set_id(ap_url.clone());
|
||||
actor.set_name(self.display_name.clone());
|
||||
|
|
Loading…
Reference in a new issue