mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2025-01-25 20:28:07 +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 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());
|
||||||
|
|
Loading…
Reference in a new issue