Remove trailing 07 from import of OrderedCollectionPage

This commit is contained in:
Kitaiti Makoto 2022-05-03 00:18:42 +09:00
parent 6d919da049
commit ee97213c90

View File

@ -9,7 +9,7 @@ use activitystreams::{
activity::Delete, activity::Delete,
actor::{ApActor, AsApActor, Endpoints, Person}, actor::{ApActor, AsApActor, Endpoints, Person},
base::{AnyBase, Base}, base::{AnyBase, Base},
collection::{OrderedCollection as OrderedCollection07, OrderedCollectionPage}, collection::{OrderedCollection, OrderedCollectionPage},
iri_string::types::IriString, iri_string::types::IriString,
markers::Activity as Activity07, markers::Activity as Activity07,
object::{kind::ImageType, AsObject as _, Image, Tombstone}, object::{kind::ImageType, AsObject as _, Image, Tombstone},
@ -461,11 +461,11 @@ impl User {
.load::<User>(conn) .load::<User>(conn)
.map_err(Error::from) .map_err(Error::from)
} }
pub fn outbox07(&self, conn: &Connection) -> Result<ActivityStream<OrderedCollection07>> { pub fn outbox07(&self, conn: &Connection) -> Result<ActivityStream<OrderedCollection>> {
Ok(ActivityStream::new(self.outbox_collection07(conn)?)) Ok(ActivityStream::new(self.outbox_collection07(conn)?))
} }
pub fn outbox_collection07(&self, conn: &Connection) -> Result<OrderedCollection07> { pub fn outbox_collection07(&self, conn: &Connection) -> Result<OrderedCollection> {
let mut coll = OrderedCollection07::new(); let mut coll = OrderedCollection::new();
let first = &format!("{}?page=1", &self.outbox_url); let first = &format!("{}?page=1", &self.outbox_url);
let last = &format!( let last = &format!(
"{}?page={}", "{}?page={}",